:root {
  --bg: #0b1020;
  --panel: #11182d;
  --panel-2: #16203c;
  --line: rgba(255,255,255,0.08);
  --text: #eef2ff;
  --muted: #a7b1d6;
  --accent: #7c5cff;
  --accent-2: #2be4ac;
  --danger: #ff7b8a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(124,92,255,0.25), transparent 28%),
    radial-gradient(circle at left center, rgba(43,228,172,0.13), transparent 24%),
    var(--bg);
  color: var(--text);
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 18px 60px;
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 22px 50px rgba(0,0,0,0.28);
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.hero h1 {
  margin: 12px 0;
  font-size: 40px;
  line-height: 1.1;
}

.hero p,
.muted,
li,
label {
  color: var(--muted);
}

.badge {
  display: inline-flex;
  padding: 8px 12px;
  background: rgba(124,92,255,0.16);
  border: 1px solid rgba(124,92,255,0.3);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-panel {
  background: rgba(0,0,0,0.15);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}

.checker-form {
  display: grid;
  gap: 12px;
}

input,
select,
button {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  min-height: 48px;
  font-size: 15px;
}

input,
select {
  background: var(--panel-2);
  color: var(--text);
  padding: 0 14px;
}

button {
  margin-top: 6px;
  border: 0;
  background: linear-gradient(135deg, var(--accent), #9a7dff);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.alert {
  margin-top: 14px;
  border-radius: 14px;
  padding: 14px;
}

.alert.error {
  background: rgba(255,123,138,0.1);
  border: 1px solid rgba(255,123,138,0.3);
  color: #ffd9df;
}

.results,
.tips {
  margin-top: 22px;
}

.results-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.source {
  max-width: 45%;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 13px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.metric-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}

.metric-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.metric-value {
  font-size: 34px;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.meta-item {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.meta-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.meta-value {
  font-size: 14px;
  overflow-wrap: anywhere;
}

ul {
  margin: 10px 0 0 18px;
  padding: 0;
}

li + li { margin-top: 8px; }

@media (max-width: 820px) {
  .hero,
  .metrics-grid,
  .meta-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 { font-size: 30px; }
  .results-head { flex-direction: column; }
  .source { max-width: 100%; }
}
