:root {
  --ch-bg: #0b0f19;
  --ch-ink: #ffffff;
  --ch-muted: rgba(255, 255, 255, 0.7);
  --ch-card: rgba(12, 16, 28, 0.86);
  --ch-line: rgba(255, 255, 255, 0.1);
  --ch-cyan: #22d3ee;
  --ch-ok: #4ade80;
  --ch-bad: #ff5d7a;
  --ch-radius: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background: var(--ch-bg);
  color: var(--ch-ink);
}

.ch-orb {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.ch-orb--cyan {
  top: -120px;
  left: -80px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.28), transparent 70%);
}
.ch-orb--magenta {
  right: -80px;
  bottom: -140px;
  background: radial-gradient(circle, rgba(232, 121, 249, 0.26), transparent 70%);
}

.ch-shell {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 72px 20px 80px;
}
.ch-shell--check {
  max-width: 1080px;
}

.ch-card {
  background: var(--ch-card);
  border: 1px solid var(--ch-line);
  border-radius: var(--ch-radius);
  padding: 32px 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
}

.ch-card--hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.ch-card--hero .ch-lead {
  margin-bottom: 28px;
}

.ch-kicker {
  margin: 0 0 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--ch-cyan);
}
h1 { margin: 0 0 12px; font-size: 32px; }
.ch-lead { margin: 0 0 24px; color: var(--ch-muted); line-height: 1.55; }

.ch-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.ch-form input {
  flex: 1 1 220px;
  height: 48px;
  border-radius: 10px;
  border: 1px solid var(--ch-line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ch-ink);
  padding: 0 14px;
  font-size: 16px;
}
.ch-form input:focus {
  outline: none;
  border-color: var(--ch-cyan);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.45);
}
.ch-form .ch-btn {
  flex: 0 0 auto;
  min-width: 108px;
}

.ch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0);
  transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease, transform 220ms ease;
}
.ch-btn:hover,
.ch-btn:focus-visible {
  outline: none;
  border-color: var(--ch-cyan);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 24px -4px rgba(34, 211, 238, 0.7), 0 0 18px rgba(34, 211, 238, 0.28);
  transform: translateY(-1px) scale(1.02);
}

.ch-results {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}
.ch-results--ok {
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
}
.ch-results__list {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.ch-provider {
  background: var(--ch-card);
  border: 1px solid var(--ch-line);
  border-radius: var(--ch-radius);
  padding: 18px;
}
.ch-provider__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 10px;
}
.ch-provider__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.ch-provider__brand img {
  height: 22px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  padding: 3px 7px;
}
.ch-badge {
  font-size: 11px;
  letter-spacing: 0.08em;
  border-radius: 999px;
  padding: 4px 8px;
  border: 1px solid var(--ch-cyan);
  color: var(--ch-cyan);
}
.ch-badge--fail { border-color: var(--ch-bad); color: var(--ch-bad); }
.ch-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ch-stat {
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 12px 6px;
}
.ch-stat strong { display: block; font-size: 22px; }
.ch-stat span { color: var(--ch-muted); font-size: 12px; }
.ch-stat--ok strong { color: var(--ch-ok); }
.ch-stat--bad strong { color: var(--ch-bad); }
.ch-empty, .ch-error { color: var(--ch-muted); }

.ch-summary {
  position: sticky;
  top: 24px;
  background: var(--ch-card);
  border: 1px solid var(--ch-line);
  border-radius: var(--ch-radius);
  padding: 24px 20px 20px;
  text-align: center;
}
.ch-summary__title {
  margin: 0 0 16px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ch-muted);
}
.ch-ring {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 20px;
}
.ch-ring__svg {
  width: 220px;
  height: 220px;
  transform: rotate(-90deg);
}
.ch-ring__track,
.ch-ring__arc {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
}
.ch-ring__track {
  stroke: rgba(255, 255, 255, 0.1);
}
.ch-ring__arc--ok { stroke: var(--ch-ok); }
.ch-ring__arc--bad { stroke: var(--ch-bad); }
.ch-ring__arc--anim {
  animation: ch-ring-draw 900ms ease-out both;
}
.ch-ring__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.ch-ring__center strong {
  font-size: 36px;
  letter-spacing: -0.03em;
  line-height: 1;
  font-weight: 700;
}
.ch-ring__center span {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ch-muted);
}
.ch-ring__center em {
  margin-top: 8px;
  font-style: normal;
  font-size: 13px;
  color: var(--ch-muted);
}
.ch-summary__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.ch-skel {
  height: 92px;
  border-radius: var(--ch-radius);
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: ch-shimmer 1.2s ease-in-out infinite;
}
@keyframes ch-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
@keyframes ch-ring-draw {
  from { stroke-dasharray: 0 400; }
}

.ch-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (max-width: 860px) {
  .ch-results--ok {
    grid-template-columns: 1fr;
  }
  .ch-summary {
    position: static;
    order: -1;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .ch-card, .ch-provider, .ch-summary { background: #121826; }
  .ch-btn { background: #161b28; backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ch-skel { animation: none; }
  .ch-btn { transition: none; }
  .ch-ring__arc--anim { animation: none; }
}
