:root {
  --bg: #0b1220;
  --card: #131c2e;
  --card2: #1b2740;
  --borda: #24314e;
  --txt: #e8eefb;
  --muted: #93a3c4;
  --ok: #35c07a;
  --aviso: #e0a13a;
  --erro: #e05a5a;
  --info: #4b8ef7;
  --raio: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

code {
  background: var(--card2);
  padding: 1px 5px;
  border-radius: 5px;
  font-size: 0.9em;
}

.app {
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

/* ---------- cabecalho ---------- */
.topo { text-align: center; margin-bottom: 18px; }

.topo__icone {
  font-size: 40px;
  line-height: 1;
  margin-bottom: 8px;
}

.topo h1 {
  font-size: 1.35rem;
  margin: 0 0 8px;
  line-height: 1.25;
}

.topo__sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.5;
}

/* ---------- cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  padding: 18px;
  margin-bottom: 14px;
}

.card h2 {
  font-size: 1.05rem;
  margin: 0 0 12px;
}

.muted { color: var(--muted); }
.pequeno { font-size: 0.82rem; line-height: 1.5; }

/* ---------- botoes ---------- */
.btn {
  display: inline-block;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 15px 18px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: filter .15s ease, transform .05s ease;
}

.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }

.btn--principal {
  background: linear-gradient(135deg, var(--info), #2f6fe0);
  color: #fff;
  margin-bottom: 10px;
}

.btn--sec {
  width: auto;
  background: var(--card2);
  color: var(--txt);
  border: 1px solid var(--borda);
  padding: 12px 17px;
}

.btn--ghost {
  width: auto;
  background: transparent;
  border: 1px solid var(--borda);
  color: var(--txt);
  padding: 11px 16px;
  font-weight: 600;
}

/* ---------- formulario do token ---------- */
.linha-form { display: flex; gap: 8px; }

.linha-form input {
  flex: 1;
  min-width: 0;
  background: #0d1524;
  border: 1px solid var(--borda);
  color: var(--txt);
  border-radius: 10px;
  padding: 12px 13px;
  font-size: 0.95rem;
  font-family: inherit;
}

.linha-form input:focus {
  outline: none;
  border-color: var(--info);
}

/* ---------- barra de progresso ---------- */
.barra {
  height: 8px;
  background: #0d1524;
  border-radius: 99px;
  overflow: hidden;
  margin: 14px 0 12px;
}

.barra__fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--info), var(--ok));
  transition: width .25s linear;
}

/* ---------- status ---------- */
.status {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 11px 13px;
  border-radius: 10px;
  border-left: 4px solid var(--info);
  background: #0f1a2c;
}

.status--ok { border-left-color: var(--ok); }
.status--aviso { border-left-color: var(--aviso); }
.status--erro { border-left-color: var(--erro); }
.status--info { border-left-color: var(--info); }

/* ---------- resultado ---------- */
.linha {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--borda);
  font-size: 0.92rem;
}

.linha:last-of-type { border-bottom: 0; }
.linha span { color: var(--muted); flex: 0 0 auto; }
.linha b { text-align: right; word-break: break-word; }

.tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--card2);
}

.tag--ok { background: rgba(53, 192, 122, .18); color: var(--ok); }
.tag--aviso { background: rgba(224, 161, 58, .18); color: var(--aviso); }

.acoes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.acoes .btn { width: auto; flex: 1 1 auto; text-align: center; text-decoration: none; }

.aviso-ip {
  background: rgba(224, 161, 58, .12);
  border: 1px solid rgba(224, 161, 58, .4);
  color: #f2cd8b;
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 0.86rem;
  line-height: 1.5;
  margin-bottom: 14px;
}

/* ---------- rodape ---------- */
.rodape {
  text-align: center;
  margin-top: 26px;
  font-size: 0.85rem;
}

.rodape a {
  color: var(--info);
  text-decoration: none;
  font-weight: 600;
}

.rodape a:hover { text-decoration: underline; }
