:root {
  --bg: #0f1419;
  --card: #1a222d;
  --border: #2a3544;
  --text: #e7eef7;
  --muted: #8b9bb0;
  --accent: #3d8bfd;
  --accent-2: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
  --radius: 12px;
  font-family: "SF Pro Text", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 10% -10%, #1a2a44 0%, var(--bg) 55%);
  color: var(--text);
  min-height: 100vh;
}
.wrap { max-width: 960px; margin: 0 auto; padding: 28px 18px 64px; }
header {
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.brand { display: flex; gap: 12px; align-items: center; }
.logo {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #3d8bfd, #22c55e);
  font-size: 22px; color: #fff;
}
h1 { margin: 0; font-size: 1.35rem; }
.section-title { margin: 0 0 8px; font-size: 1.05rem; }
.sub, .hint, .disclaimer, footer p { color: var(--muted); font-size: 0.88rem; }
.req { color: var(--danger); }
.formula { margin: 10px 0 0; }
.disclaimer-banner {
  background: #1c2114;
  border: 1px solid #3d4a1f;
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 16px;
  color: #d4d4aa;
  font-size: 0.9rem;
  line-height: 1.45;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
}
.pay-banner {
  border-color: #3d4a1f;
  background: #1c2114;
}
.quota-box {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  background: #121820; border: 1px solid var(--border);
  padding: 8px 12px; border-radius: 999px; font-size: 0.9rem;
}
.row { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; min-width: 120px; }
label.grow { flex: 1; min-width: 220px; }
input, textarea {
  background: #0f1419; color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; font: inherit;
}
textarea { resize: vertical; min-height: 140px; }
.namer-actions { display: flex; align-items: flex-end; padding-bottom: 2px; }
.suggest-words {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 12px;
}
.suggest-affix {
  margin-top: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.btn.chip {
  padding: 4px 10px; font-size: 0.82rem; border-radius: 999px;
  background: #121820;
}
.btn.chip.active {
  border-color: var(--accent);
  color: #93c5fd;
}
fieldset {
  border: 1px solid var(--border); border-radius: 8px;
  margin: 14px 0 0; padding: 12px;
}
legend { padding: 0 6px; color: var(--muted); }
.tlds { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.tlds label {
  flex-direction: row; align-items: center; gap: 6px;
  min-width: auto; cursor: pointer;
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; align-items: center; }
.progress {
  color: var(--muted); font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.progress-bar {
  margin-top: 10px; height: 6px; border-radius: 999px;
  background: #0f1419; border: 1px solid var(--border); overflow: hidden;
}
.progress-bar-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #3d8bfd, #22c55e);
  transition: width 0.2s ease;
}
.btn {
  appearance: none; border: 1px solid var(--border);
  background: #121820; color: var(--text);
  border-radius: 8px; padding: 10px 16px;
  font: inherit; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn:hover { border-color: #3d4f66; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.primary {
  background: linear-gradient(135deg, #3d8bfd, #2563eb);
  border-color: transparent; font-weight: 600;
}
.btn.ghost { background: transparent; padding: 6px 10px; font-size: 0.85rem; }
.btn.tiny { padding: 4px 8px; font-size: 0.8rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 500; }
tr.row-available {
  background: #14532d22;
}
tr.row-available td:first-child code {
  color: #86efac;
  font-weight: 600;
}
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 600;
}
.badge.available { background: #14532d55; color: #4ade80; }
.badge.registered { background: #7f1d1d55; color: #f87171; }
.badge.unknown { background: #78350f55; color: #fbbf24; }
.result-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.result-head h2 { margin: 0 0 10px; font-size: 1.1rem; }
.disclaimer {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-left: 3px solid var(--warn);
  background: #1a1810;
  color: #e7d9a8;
  font-size: 0.88rem;
  line-height: 1.45;
}
.fav-list {
  list-style: none; margin: 12px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.fav-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px;
}
dialog {
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--card); color: var(--text); padding: 0;
  max-width: 420px; width: calc(100% - 32px);
}
.dialog-body { padding: 20px; }
.dialog-body h3 { margin-top: 0; }
dialog::backdrop { background: #000a; }
footer { text-align: center; margin-top: 28px; }
footer p { line-height: 1.5; max-width: 52em; margin: 0 auto; }
