:root {
  --bg: #08100d;
  --panel: #101b17;
  --line: #24312c;
  --text: #f4f7f5;
  --muted: #8f9c97;
  --lime: #c7ff54;
  --green: #70e19b;
  --warn: #ffbd59;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 76% 6%, rgba(106, 177, 100, .14), transparent 28rem),
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 48px 48px, 48px 48px, auto;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "PingFang SC", sans-serif;
}

.shell { width: min(1080px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0 36px; }
.hero { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 42px; }
.eyebrow, .label { color: var(--lime); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
h1 { margin: 12px 0 0; font-size: clamp(42px, 7vw, 74px); line-height: .96; letter-spacing: -.055em; }
h1 span { color: var(--muted); }
.status-pill { border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; color: var(--muted); font-size: 13px; }
.status-pill i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }

.primary-card, .card, .details {
  border: 1px solid var(--line);
  background: rgba(16, 27, 23, .87);
  box-shadow: 0 24px 70px rgba(0,0,0,.18);
}
.primary-card { padding: 34px; display: flex; align-items: center; justify-content: space-between; border-radius: 18px; border-top-color: #4a5d55; }
.ip-value { margin: 8px 0; font: 600 clamp(28px, 5vw, 52px)/1.1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.04em; overflow-wrap: anywhere; }
.muted, .footnote, .card-head p, .dns-panel p { color: var(--muted); }
.muted { margin: 0; font-size: 13px; }
.score { width: 100px; height: 100px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-content: center; text-align: center; }
.score strong { color: var(--lime); font-size: 30px; }
.score span { color: var(--muted); font-size: 11px; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.card { border-radius: 16px; padding: 26px; min-height: 310px; }
.card-head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.icon { width: 38px; height: 38px; border: 1px solid #3b4b44; border-radius: 10px; display: grid; place-items: center; color: var(--lime); font-weight: 700; }
h2 { margin: 0; font-size: 18px; }
.card-head p { margin: 4px 0 0; font-size: 12px; }
.badge { font-size: 11px; padding: 5px 8px; border-radius: 99px; }
.badge.pending, .badge.idle { color: var(--warn); background: rgba(255, 189, 89, .1); }
.badge.safe { color: var(--green); background: rgba(112, 225, 155, .1); }
.badge.warning { color: var(--warn); background: rgba(255, 189, 89, .1); }
.badge.disabled { color: var(--muted); background: rgba(255,255,255,.05); }

.result-list { min-height: 110px; padding: 20px 0 6px; }
.result-item { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.result-item code { color: var(--text); overflow-wrap: anywhere; }
.result-item span { color: var(--muted); font-size: 12px; flex: none; }
.webrtc-result { border-bottom: 1px solid rgba(255,255,255,.05); }
.webrtc-result .result-item { border-bottom: 0; padding-bottom: 5px; }
.webrtc-result p { color: var(--muted); font-size: 12px; margin: 0 0 11px; }
.resolver-result { border-bottom: 1px solid rgba(255,255,255,.05); }
.resolver-result .result-item { border-bottom: 0; padding-bottom: 5px; }
.resolver-result p { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 0 0 11px; }
.skeleton { width: 100%; height: 17px; border-radius: 6px; margin: 10px 0; background: linear-gradient(90deg, #17231e 25%, #26342e 50%, #17231e 75%); background-size: 200%; animation: load 1.3s infinite; }
.skeleton.short { width: 62%; }
@keyframes load { to { background-position: -200% 0; } }
.footnote { margin: 14px 0 0; font-size: 11px; line-height: 1.6; }
.dns-panel { min-height: 137px; padding: 22px 0; }
.dns-panel code { display: block; margin-top: 15px; color: var(--lime); overflow-wrap: anywhere; }
.button { appearance: none; border: 0; background: var(--lime); color: #15200f; padding: 11px 16px; border-radius: 8px; font-weight: 700; cursor: pointer; }
.button:disabled { opacity: .45; cursor: wait; }

.details { margin-top: 18px; padding: 26px 32px; border-radius: 16px; display: grid; grid-template-columns: 1fr 2fr; align-items: center; }
.details .label { margin: 0 0 6px; }
dl { margin: 0; display: grid; grid-template-columns: .7fr 1.5fr .8fr; }
dl div { padding: 4px 18px; border-left: 1px solid var(--line); min-width: 0; }
dt { color: var(--muted); font-size: 11px; margin-bottom: 7px; }
dd { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
footer { margin-top: 30px; color: #627069; font-size: 11px; text-align: center; }

@media (max-width: 720px) {
  .shell { width: min(100% - 24px, 1080px); padding-top: 38px; }
  .hero { display: block; }
  .status-pill { display: inline-block; margin-top: 24px; }
  .primary-card { align-items: flex-end; padding: 24px; }
  .score { width: 72px; height: 72px; flex: none; }
  .grid { grid-template-columns: 1fr; }
  .details { grid-template-columns: 1fr; gap: 22px; }
  dl { grid-template-columns: 1fr; gap: 12px; }
  dl div { border-left: 0; border-top: 1px solid var(--line); padding: 12px 0 0; }
}
