:root {
  color-scheme: dark;
  --panel: rgba(18, 24, 46, 0.82);
  --text: #f5f7ff;
  --muted: #a8b0cf;
  --line: rgba(255, 255, 255, 0.12);
  --blue: #5865f2;
  --purple: #9b5cff;
  --cyan: #34d3ff;
  --green: #45d483;
  --red: #ff6b7a;
  --yellow: #ffd166;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(88, 101, 242, 0.28), transparent 30%),
    radial-gradient(circle at 90% 20%, rgba(52, 211, 255, 0.16), transparent 26%),
    linear-gradient(135deg, #070914 0%, #10172f 54%, #111021 100%);
  color: var(--text);
}
button, input, textarea { font: inherit; }
.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 56px; }
.hero {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  min-height: 220px; padding: 32px; border: 1px solid var(--line); border-radius: 8px;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.92), rgba(155, 92, 255, 0.76) 48%, rgba(16, 24, 50, 0.9));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}
.eyebrow { margin: 0 0 12px; color: rgba(255,255,255,.78); font-size: .8rem; font-weight: 800; text-transform: uppercase; }
h1,h2,h3,p { margin-top: 0; }
h1 { max-width: 720px; margin-bottom: 0; font-size: clamp(2rem, 5vw, 4.8rem); line-height: .98; letter-spacing: 0; }
h2 { margin-bottom: 6px; }
p { color: var(--muted); }
.status-pill,.counter { flex: 0 0 auto; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 10px 14px; background: rgba(0,0,0,.22); color: white; font-size: .9rem; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0; }
.tab,.primary,.secondary { border: 0; border-radius: 8px; color: white; cursor: pointer; font-weight: 800; }
.tab { min-height: 48px; border: 1px solid var(--line); background: rgba(255,255,255,.06); }
.tab.active,.tab:hover { border-color: rgba(88,101,242,.7); background: linear-gradient(135deg, rgba(88,101,242,.72), rgba(155,92,255,.5)); }
.panel { display: none; }
.panel.active { display: block; }
.card,.result-card { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: 0 18px 50px rgba(0,0,0,.26); backdrop-filter: blur(18px); }
.card { padding: 24px; }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.form-grid { display: grid; gap: 16px; }
label { display: grid; gap: 8px; color: var(--text); font-weight: 700; }
input,textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; outline: none; background: rgba(3,6,18,.72); color: var(--text); padding: 14px 15px; }
textarea { resize: vertical; }
input:focus,textarea:focus { border-color: rgba(88,101,242,.88); box-shadow: 0 0 0 4px rgba(88,101,242,.14); }
.control-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.options-row { display: flex; flex-wrap: wrap; gap: 16px; }
.check { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }
.action-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.primary,.secondary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 18px; }
.primary { background: linear-gradient(135deg, var(--blue), var(--purple)); }
.secondary { border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); }
button:disabled { cursor: wait; opacity: .7; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.35); border-top-color: white; border-radius: 50%; animation: spin .8s linear infinite; }
.hidden { display: none; }
.results { display: grid; gap: 12px; margin-top: 16px; }
.result-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px; }
.result-card h3 { margin: 0 0 4px; }
.result-card p { margin: 0; }
.result-card span { border-radius: 999px; padding: 8px 12px; font-size: .82rem; font-weight: 900; }
.result-card.available { border-color: rgba(69,212,131,.6); }
.result-card.available span { background: rgba(69,212,131,.16); color: var(--green); }
.result-card.taken span { background: rgba(255,209,102,.15); color: var(--yellow); }
.result-card.error { border-color: rgba(255,107,122,.56); }
.result-card.error span { background: rgba(255,107,122,.15); color: var(--red); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stats div { padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.05); }
.stats strong { display: block; margin-bottom: 4px; font-size: 1.8rem; }
.stats span { color: var(--muted); }
.proxy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
pre { overflow: auto; min-height: 220px; max-height: 420px; margin: 0; border: 1px solid var(--line); border-radius: 8px; background: rgba(0,0,0,.25); color: #dfe6ff; padding: 14px; white-space: pre-wrap; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  .shell { width: min(100% - 20px, 1120px); padding-top: 10px; }
  .hero,.card-header,.result-card { align-items: stretch; flex-direction: column; }
  .hero { min-height: 260px; padding: 22px; }
  .tabs,.stats,.proxy-grid,.action-row,.control-grid { grid-template-columns: 1fr; }
}
