:root {
  --bg: #07030c;
  --card: #140a22;
  --line: #2b1a44;
  --purple: #7c3aed;
  --purple-2: #a78bfa;
  --text: #f5f2ff;
  --muted: #9d8fb8;
  --green: #34d399;
  --red: #fb7185;
  --orange: #fbbf24;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 70% -10%, #38106e 0%, transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 38px 22px 60px;
}

/* ---------------------------------------------------------------- marca */

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.brandmark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 22px;
  color: #fff;
  background: linear-gradient(135deg, #a78bfa, #5b21b6 70%);
  box-shadow: 0 10px 30px rgba(124, 58, 237, .35);
  text-shadow: 0 0 12px rgba(255, 255, 255, .5);
}

.brandtext h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: .12em;
}

.brandtext p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .14em;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--purple-2);
  background: #180c2a;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

/* ---------------------------------------------------------------- cards */

.grid { display: grid; gap: 16px; }

.card {
  background: linear-gradient(180deg, rgba(124, 58, 237, .08), rgba(20, 10, 34, .92));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}

.card h2 {
  margin: 0 0 6px;
  font-size: 17px;
  letter-spacing: .02em;
}

.cardhead {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.cardhead > div { flex: 1; }

.hint {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
  line-height: 1.55;
}

.count {
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  color: var(--purple-2);
  border: 1px solid var(--line);
  background: #0c0616;
  border-radius: 999px;
  padding: 6px 10px;
}

/* ---------------------------------------------------------------- forms */

label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--muted);
  margin: 12px 0 6px;
}

input[type=text],
input[type=password] {
  width: 100%;
  height: 46px;
  border-radius: 10px;
  border: 1px solid #3a2559;
  background: #0c0616;
  color: var(--text);
  padding: 0 13px;
  font-size: 14px;
  outline: none;
}

input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .18);
}

button {
  height: 46px;
  border: 0;
  border-radius: 10px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .05em;
  color: #fff;
  background: linear-gradient(90deg, #7c3aed, #5b21b6);
  transition: filter .15s ease, transform .15s ease;
}

button:hover { filter: brightness(1.1); }
button:active { transform: translateY(1px); }

button.ghost {
  background: #241338;
  border: 1px solid #3a2559;
  color: var(--text);
}

button.danger {
  background: #3a1220;
  border: 1px solid #5d1b2e;
  color: var(--red);
}

button:disabled { opacity: .5; cursor: not-allowed; }

button.full { width: 100%; }

/* ---------------------------------------------------------------- listas */

.dns-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dns-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dns-index {
  width: 26px;
  flex: 0 0 26px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--purple-2);
}

.dns-row input { flex: 1; }

.iconbtn {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  padding: 0;
  border-radius: 8px;
  font-size: 13px;
  background: #241338;
  border: 1px solid #3a2559;
  color: var(--text);
}

.iconbtn.remove {
  background: #3a1220;
  border-color: #5d1b2e;
  color: var(--red);
}

.listactions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.listactions button { height: 40px; }

/* ---------------------------------------------------------------- ações */

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

.actions .push { margin-left: auto; }

.status {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  min-height: 18px;
}

.status.ok { color: var(--green); }
.status.err { color: var(--red); }

.meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}

.meta b { color: var(--purple-2); }

.warn {
  border: 1px solid #5a3a12;
  background: #221505;
  color: #fcd34d;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.55;
  margin-top: 16px;
}

.login {
  max-width: 430px;
  margin: 8vh auto 0;
}

code {
  background: #0c0616;
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--purple-2);
}

.hidden { display: none !important; }

@media (max-width: 620px) {
  .brand { flex-wrap: wrap; }
  .badge { margin-left: 0; }
  .dns-row { flex-wrap: wrap; }
  .dns-row input { flex: 1 0 100%; order: 2; }
  .dns-index { order: 1; }
  .dns-row .iconbtn { order: 3; }
}
