:root{
  --bg:#ffffff;
  --panel:#ffffff;
  --stroke:#e6e9ef;
  --text:#111827;
  --muted:#6b7280;

  --primary:#38bdf8; /* azul claro */
  --primary-2:#0ea5e9;

  --success:#22c55e; /* verde */
  --danger:#ef4444;  /* vermelho */
  --warning:#f59e0b;

  --shadow:0 8px 25px rgba(0,0,0,.06);
  --radius:14px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:linear-gradient(180deg,#ffffff 0%, #f8fafc 100%);
}

a{color:inherit;text-decoration:none}
.container{max-width:1050px;margin:0 auto;padding:24px}

/* Topbar (WHMCS-ish) */
.topbar{
  position:sticky;top:0;z-index:10;
  background:rgba(255,255,255,.9);
  border-bottom:1px solid var(--stroke);
  backdrop-filter:saturate(180%) blur(10px);
}
.topbar-inner{display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{display:flex;align-items:baseline;gap:0;font-weight:800;letter-spacing:.4px}
.brand-mark{font-size:18px}
.brand-dot{font-size:18px;color:var(--primary-2)}
.nav{display:flex;align-items:center;gap:14px}
.nav-link{padding:10px 12px;border-radius:10px;color:var(--muted)}
.nav-link:hover{background:#f1f5f9;color:var(--text)}

/* Components */
.card{
  background:var(--panel);
  border:1px solid var(--stroke);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
}
.card-lg{padding:28px}
.center{max-width:560px;margin:70px auto}

.h1{font-size:26px;margin:0 0 10px}
.h2{font-size:18px;margin:0 0 12px}
.muted{color:var(--muted)}
.spacer{height:14px}

.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:11px 14px;
  border-radius:12px;
  border:1px solid transparent;
  cursor:pointer;
  font-weight:700;
  transition:.15s transform ease, .15s background ease, .15s border ease;
  user-select:none;
}
.btn:active{transform:translateY(1px)}
.btn-primary{
  background:linear-gradient(180deg,var(--primary) 0%, var(--primary-2) 100%);
  color:#06121a;
  border-color:rgba(0,0,0,.05);
}
.btn-primary:hover{filter:brightness(.98)}
.btn-ghost{
  background:#ffffff;
  border-color:var(--stroke);
  color:var(--text);
}
.btn-ghost:hover{background:#f8fafc}

.btn-discord{
  background:#5865F2;
  color:#fff;
  border-color:rgba(0,0,0,.08);
  padding:12px 16px;
  border-radius:14px;
}
.btn-discord:hover{filter:brightness(.98)}
.icon{width:18px;height:18px}

.note{
  margin-top:16px;
  display:flex;gap:10px;align-items:center;
  padding:10px 12px;
  border-radius:12px;
  border:1px dashed var(--stroke);
  background:#fbfdff;
  color:var(--muted);
  font-size:14px;
}
.badge{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;font-weight:700;font-size:12px}
.badge-info{background:#e0f2fe;color:#075985;border:1px solid #bae6fd}
.badge-warn{background:#fffbeb;color:#92400e;border:1px solid #fde68a}

.alert{
  border-radius:14px;
  padding:12px 14px;
  border:1px solid var(--stroke);
  background:#ffffff;
}
.alert-warn{border-color:#fde68a;background:#fffbeb}
.alert-ok{border-color:#bbf7d0;background:#f0fdf4}
.alert-err{border-color:#fecaca;background:#fef2f2}

.page-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0}
.title{font-size:20px;font-weight:800}
.actions{display:flex;align-items:center;gap:10px}

.userbox{display:flex;align-items:center;gap:12px}
.avatar{width:44px;height:44px;border-radius:14px;overflow:hidden;border:1px solid var(--stroke);background:#f1f5f9}
.avatar img{width:100%;height:100%;object-fit:cover}
.avatar-fallback{display:flex;align-items:center;justify-content:center;height:100%;font-weight:900;color:var(--muted)}

/* Form */
.form{display:flex;flex-direction:column;gap:14px}
.field{display:flex;flex-direction:column;gap:6px}
label{font-weight:800;font-size:13px}
input{
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--stroke);
  outline:none;
  font-size:15px;
  background:#fff;
}
input:focus{border-color:#bae6fd; box-shadow:0 0 0 4px rgba(56,189,248,.18)}
input:disabled{background:#f8fafc;color:var(--muted)}
small{font-size:13px}

.grid2{display:grid;grid-template-columns:1fr 1.2fr;gap:14px}
@media (max-width: 720px){ .grid2{grid-template-columns:1fr} .center{margin:40px auto} }

.input-group{display:flex;align-items:center}
.input-group input{border-top-right-radius:0;border-bottom-right-radius:0;flex:1}
.addon{
  padding:12px 12px;
  border:1px solid var(--stroke);
  border-left:0;
  border-top-right-radius:12px;
  border-bottom-right-radius:12px;
  background:#f8fafc;
  color:var(--muted);
  font-weight:800;
  white-space:nowrap;
}

.row{display:flex;gap:10px;flex-wrap:wrap}

/* Table */
.table-wrap{overflow:auto;border-radius:12px;border:1px solid var(--stroke)}
.table{width:100%;border-collapse:collapse;background:#fff}
.table th,.table td{padding:12px 12px;border-bottom:1px solid var(--stroke);text-align:left}
.table th{font-size:13px;color:var(--muted);font-weight:900;background:#f8fafc}
.table tr:last-child td{border-bottom:0}
code{background:#f8fafc;border:1px solid var(--stroke);padding:3px 6px;border-radius:8px}

.btn-danger{
  background:#ef4444;
  color:white;
}
.btn-danger:hover{
  filter:brightness(.9);
}
.btn-sm{
  padding:6px 10px;
  font-size:13px;
}
