:root {
  color-scheme: dark;
  --bg: #070b14;
  --bg2: #0b1325;
  --panel: rgba(17, 25, 43, 0.86);
  --panel2: rgba(22, 34, 58, 0.92);
  --line: rgba(255,255,255,.11);
  --line2: rgba(255,255,255,.07);
  --text: #edf5ff;
  --muted: #94a6c2;
  --green: #54f0a8;
  --green2: #20c978;
  --blue: #5ea8ff;
  --orange: #ffbf69;
  --red: #ff6b77;
  --shadow: 0 30px 80px rgba(0,0,0,.42);
  --radius: 24px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 8%, rgba(84,240,168,.20), transparent 24rem),
    radial-gradient(circle at 88% 4%, rgba(94,168,255,.20), transparent 26rem),
    radial-gradient(circle at 50% 100%, rgba(255,191,105,.08), transparent 34rem),
    linear-gradient(180deg, #08101f, var(--bg));
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.bg-grid { position: fixed; inset: 0; pointer-events: none; opacity: .24; background-image: linear-gradient(var(--line2) 1px, transparent 1px), linear-gradient(90deg, var(--line2) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, black, transparent 80%); }
.app-shell { position: relative; width: min(1320px, calc(100% - 28px)); margin: 0 auto; padding: 18px 0 48px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0 18px; }
.brand { display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 16px; font-weight: 1000; color: #06111f; background: linear-gradient(135deg, var(--green), var(--blue)); box-shadow: 0 14px 40px rgba(84,240,168,.18); }
.brand strong, .brand span { display: block; }
.brand span { color: var(--muted); font-size: 13px; margin-top: 2px; }
.top-actions, .button-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero-card { display: grid; grid-template-columns: 1.6fr .8fr; gap: 18px; align-items: stretch; padding: 26px; border: 1px solid var(--line); border-radius: 32px; background: linear-gradient(135deg, rgba(24,39,68,.88), rgba(11,19,37,.80)); box-shadow: var(--shadow); margin-bottom: 18px; overflow: hidden; position: relative; }
.hero-card::after { content: ""; position: absolute; inset: auto -8% -55% 48%; height: 260px; background: radial-gradient(circle, rgba(84,240,168,.20), transparent 68%); transform: rotate(-8deg); }
.hero-copy, .hero-status { position: relative; z-index: 1; }
.eyebrow, .section-kicker { margin: 0 0 7px; color: var(--green); text-transform: uppercase; letter-spacing: .13em; font-size: 11px; font-weight: 1000; }
h1 { margin: 0; font-size: clamp(40px, 6vw, 74px); line-height: .92; letter-spacing: -.065em; }
h2 { margin: 0; font-size: 21px; letter-spacing: -.02em; }
p { color: var(--muted); }
.hero-copy p:last-child { max-width: 740px; font-size: 16px; line-height: 1.55; }
.hero-status { border: 1px solid var(--line); border-radius: 24px; background: rgba(7,11,20,.40); padding: 18px; align-self: stretch; display: grid; align-content: center; gap: 12px; }
.status-pill, .count-badge, .tag { display: inline-flex; width: fit-content; align-items: center; gap: 6px; border-radius: 999px; padding: 7px 11px; border: 1px solid rgba(94,168,255,.24); color: #c8e0ff; background: rgba(94,168,255,.14); font-size: 12px; font-weight: 1000; }
.status-pill.ready { color: #c8ffe5; background: rgba(84,240,168,.14); border-color: rgba(84,240,168,.24); }
.status-pill.error { color: #ffd1d6; background: rgba(255,107,119,.12); border-color: rgba(255,107,119,.24); }
.status-line { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }
.dot { width: 9px; height: 9px; border-radius: 99px; background: var(--green); box-shadow: 0 0 18px var(--green); }
.dot.blue { background: var(--blue); box-shadow: 0 0 18px var(--blue); }
.control-grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: 18px; }
.dashboard-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 18px; }
.span-2 { min-height: 100%; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel2), var(--panel)); padding: 18px; box-shadow: var(--shadow); margin-bottom: 18px; backdrop-filter: blur(10px); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
label { display: block; color: #cbdbf3; font-size: 13px; font-weight: 900; margin: 12px 0 7px; }
input, textarea, select { width: 100%; border: 1px solid var(--line); background: rgba(5,10,20,.80); color: var(--text); border-radius: 15px; padding: 12px 13px; outline: 0; font: inherit; font-size: 14px; }
select { min-width: 148px; }
input:focus, textarea:focus, select:focus { border-color: rgba(84,240,168,.65); box-shadow: 0 0 0 3px rgba(84,240,168,.11); }
.btn { appearance: none; border: 1px solid transparent; border-radius: 15px; padding: 11px 14px; color: #06111f; background: var(--green); font-weight: 1000; cursor: pointer; }
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg, var(--green), #7dffc0); }
.btn.secondary { color: #e6f1ff; background: rgba(255,255,255,.09); border-color: var(--line); }
.btn.ghost { color: #e6f1ff; background: transparent; border-color: var(--line); }
.toggle { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--muted); }
.toggle input { width: auto; }
.inline-toggle { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.03); }
.log { min-height: 184px; max-height: 300px; overflow: auto; white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.5; color: #c0d4ef; background: rgba(4,8,16,.82); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 18px; }
.stat-card { border: 1px solid var(--line); background: rgba(15,24,43,.76); border-radius: 22px; padding: 16px; box-shadow: 0 16px 50px rgba(0,0,0,.22); }
.stat-card .value { font-size: 30px; font-weight: 1000; letter-spacing: -.055em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-card .label { color: var(--muted); font-size: 12px; font-weight: 800; margin-top: 4px; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.match-card, .best-card { border: 1px solid rgba(84,240,168,.22); background: linear-gradient(180deg, rgba(84,240,168,.105), rgba(84,240,168,.045)); border-radius: 20px; padding: 14px; }
.match-card h3, .best-card h3 { margin: 0 0 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 17px; }
.meta { color: var(--muted); font-size: 13px; line-height: 1.45; }
.big-result { font-size: 24px; font-weight: 1000; letter-spacing: -.04em; margin: 4px 0; }
.best-list { display: grid; gap: 10px; }
.best-card { border-color: rgba(94,168,255,.22); background: linear-gradient(180deg, rgba(94,168,255,.105), rgba(94,168,255,.045)); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; align-items: center; }
.table-wrap { border: 1px solid var(--line); border-radius: 18px; overflow: auto; background: rgba(5,10,20,.58); }
table { width: 100%; border-collapse: collapse; min-width: 880px; }
th, td { padding: 12px 13px; border-bottom: 1px solid var(--line2); text-align: left; vertical-align: top; font-size: 13px; }
th { background: rgba(255,255,255,.045); color: #d9e8ff; position: sticky; top: 0; z-index: 1; }
tr.mine { background: rgba(84,240,168,.10); }
tr:hover { background: rgba(255,255,255,.035); }
.pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 8px; font-size: 11px; font-weight: 1000; background: rgba(255,255,255,.08); color: #d8e7ff; }
.pill.mine { color: #c7ffe7; background: rgba(84,240,168,.18); }
.pill.dns { color: #ffd3d7; background: rgba(255,107,119,.15); }
.muted, .empty { color: var(--muted); }
.center { text-align: center; }
@media (max-width: 980px) { .hero-card, .control-grid, .dashboard-grid, .stats-grid { grid-template-columns: 1fr; } .card-grid { grid-template-columns: 1fr; } .topbar { align-items: flex-start; flex-direction: column; } }
@media (max-width: 620px) { .app-shell { width: min(100% - 18px, 1320px); padding-top: 10px; } .hero-card, .panel { padding: 14px; border-radius: 20px; } h1 { font-size: 42px; } .filters { justify-content: stretch; } select { min-width: 100%; } }
