/* Área de membros: usa os tokens e botões de ../styles.css com uma fonte mais limpa */
:root { --display: "Plus Jakarta Sans", system-ui, sans-serif; --font: "Plus Jakarta Sans", system-ui, sans-serif; }
body { min-height: 100vh; }

/* ---------- Login e definir senha ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; position: relative; overflow: hidden; }
.auth::before { content: ""; position: absolute; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(closest-side, rgba(139,92,246,.25), transparent 70%); top: -280px; right: -200px; pointer-events: none; }
.auth-card { position: relative; width: min(420px, 100%); padding: 36px 32px; border-radius: 24px; background: linear-gradient(180deg, #17171A, #111113); border: 1px solid var(--line-2); box-shadow: 0 40px 100px -30px rgba(0,0,0,.9); }
.auth-card .brand-logo { height: 40px; margin-bottom: 28px; }
.auth-card h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.auth-card .muted { margin: 8px 0 24px; font-size: 15px; }
.auth-card label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.auth-card .btn { margin-top: 6px; }
.auth-foot { margin-top: 20px; font-size: 13px; color: var(--dim); text-align: center; }
.auth-foot a { color: var(--muted); }

/* ---------- Painel ---------- */
.app { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; padding: 24px 14px; border-right: 1px solid var(--line); background: #0C0C0E; }
.side .brand-logo { height: 34px; margin: 0 10px 28px; }
.side-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); padding: 14px 12px 6px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; transition: background .2s, color .2s; }
.nav-item i { font-size: 19px; }
.nav-item:hover { background: rgba(255,255,255,.05); color: var(--text); }
.nav-item.on { background: var(--lime-a); color: var(--lime); }
.nav-item.off { opacity: .45; pointer-events: none; }
.nav-item .soon { margin-left: auto; font-size: 10px; font-weight: 700; padding: 3px 6px; border-radius: 6px; background: rgba(255,255,255,.06); }
.side-user { margin-top: auto; padding: 14px 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); word-break: break-all; }
.side-user button { margin-top: 10px; width: 100%; }

.main { padding: 32px 40px 64px; min-width: 0; }
.main-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.main-head h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.main-head p { color: var(--muted); margin-top: 4px; }
.view { display: none; }
.view.on { display: block; }

.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.kpi span { display: block; font-size: 13px; color: var(--muted); }
.kpi b { display: block; margin-top: 8px; font-size: 32px; font-weight: 800; letter-spacing: -0.04em; }
.kpi.hot { border-color: rgba(198,244,50,.35); background: radial-gradient(240px 120px at 100% 0%, rgba(198,244,50,.12), transparent 70%), var(--surface); }
.kpi.hot b { color: var(--lime); }

.panels { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 12px; }
.panel { padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.panel h2 { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 18px; }
.bars { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; align-items: end; height: 160px; }
.bar { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar i { display: block; width: 100%; min-height: 3px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--lime), #8FB51F); }
.bar i.zero { background: rgba(255,255,255,.08); }
.bar small { font-size: 10px; color: var(--dim); }
.bar em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--text); }
.rank { display: grid; gap: 10px; }
.rank-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; font-size: 14px; }
.rank-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row b { font-weight: 700; }
.rank-bar { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: rgba(255,255,255,.06); overflow: hidden; }
.rank-bar i { display: block; height: 100%; background: var(--violet); border-radius: 6px; }
.empty-note { color: var(--dim); font-size: 14px; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar input, .toolbar select { margin: 0; width: auto; }
.toolbar input { flex: 1; min-width: 220px; }
.toolbar .btn { margin-left: auto; }
.count { font-size: 13px; color: var(--dim); margin-bottom: 10px; }
.table-wrap { border-radius: 18px; border: 1px solid var(--line); background: var(--surface); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255,255,255,.02); }
td .who b { display: block; font-weight: 700; }
td .who small { color: var(--muted); font-size: 13px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 6px; margin: 2px 4px 2px 0; }
.tag.ebook { background: var(--lime-a); color: var(--lime); }
.tag.kit { background: var(--violet-a); color: var(--violet-2); }
.acts { display: flex; gap: 6px; justify-content: flex-end; }
.ico-btn { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); color: var(--text); text-decoration: none; font-size: 17px; transition: background .2s, border-color .2s, color .2s; }
.ico-btn:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.empty { padding: 56px 20px; text-align: center; color: var(--muted); }
.empty i { font-size: 34px; color: var(--dim); display: block; margin-bottom: 10px; }

.top-mobile { display: none; }

@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .panels { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .top-mobile { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; background: rgba(9,9,11,.92); backdrop-filter: blur(10px); }
  .top-mobile .brand-logo { height: 30px; }
  .tabs-mobile { display: flex; gap: 6px; }
  .tabs-mobile a { font-size: 13px; font-weight: 700; padding: 8px 10px; border-radius: 9px; color: var(--muted); text-decoration: none; }
  .tabs-mobile a.on { background: var(--lime-a); color: var(--lime); }
  .main { padding: 22px 16px 48px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi b { font-size: 26px; }
  .toolbar .btn { margin-left: 0; width: 100%; }
  thead { display: none; }
  table, tbody, tr, td { display: block; width: 100%; }
  tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  td { padding: 4px 0; border: 0; }
  .acts { justify-content: flex-start; margin-top: 8px; }
}

.app[hidden] { display: none; }
