* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #111 0, #050505 45%, #000 100%);
  color: #d8ffe8;
  font-family: "Courier New", Courier, monospace;
}

.terminal-wrap {
  width: min(1100px, calc(100% - 32px));
  margin: 40px auto;
}

.terminal {
  background: #050807;
  border: 1px solid #1b3b2b;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 255, 136, 0.08);
}

.terminal-topbar {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  background: #0c0f0d;
  border-bottom: 1px solid #1b3b2b;
}

.terminal-topbar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #00ff88;
  opacity: .35;
}

.terminal-topbar strong {
  margin-left: 10px;
  color: #7cffb8;
  font-size: 13px;
}

.terminal-body { padding: 28px; }

.prompt { color: #00ff88; margin: 0 0 14px; }
.prompt span { color: #b4ffd5; }

h1 {
  margin: 0;
  color: #00ff88;
  font-size: clamp(28px, 5vw, 54px);
  letter-spacing: -1px;
  text-transform: uppercase;
}

.subtitle {
  color: #8bb99e;
  margin: 8px 0 28px;
}

.dns-form {
  display: grid;
  grid-template-columns: 1fr 160px 170px;
  gap: 14px;
  margin-bottom: 22px;
}

label {
  display: grid;
  gap: 8px;
  color: #8bb99e;
  font-size: 13px;
  text-transform: uppercase;
}

input, select, button {
  height: 48px;
  border-radius: 8px;
  border: 1px solid #214c36;
  background: #080d0b;
  color: #d8ffe8;
  font: inherit;
  padding: 0 14px;
  outline: none;
}

input:focus, select:focus {
  border-color: #00ff88;
  box-shadow: 0 0 0 3px rgba(0, 255, 136, .12);
}

button {
  align-self: end;
  background: #00ff88;
  color: #00170c;
  font-weight: bold;
  cursor: pointer;
  border-color: #00ff88;
}

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

.status {
  min-height: 24px;
  color: #7cffb8;
  margin-bottom: 18px;
}

.result-head, .result-row {
  display: grid;
  grid-template-columns: 260px 1fr 80px;
  gap: 16px;
  align-items: start;
}

.result-head {
  color: #5d8f72;
  border-bottom: 1px solid #153021;
  padding: 0 0 10px;
  text-transform: uppercase;
  font-size: 12px;
}

.result-row {
  padding: 16px 0;
  border-bottom: 1px solid #102719;
}

.resolver-name { color: #d8ffe8; font-weight: bold; }
.resolver-meta { display: block; color: #668b76; font-size: 12px; margin-top: 4px; }
.records { color: #00ff88; word-break: break-word; white-space: pre-wrap; }
.no-record { color: #ff7070; }
.ok { color: #00ff88; font-size: 24px; line-height: 1; }
.fail { color: #ff5555; font-size: 24px; line-height: 1; }

@media (max-width: 760px) {
  .dns-form { grid-template-columns: 1fr; }
  .result-head { display: none; }
  .result-row { grid-template-columns: 1fr; gap: 8px; }
}
