/* ---------------------------------------------------------------
   Email Validator - dark UI
   Icons only, no emoji anywhere.
   --------------------------------------------------------------- */

:root {
  --bg: #0a0b0d;
  --bg-soft: #101216;
  --panel: #14171c;
  --panel-2: #191d23;
  --border: #262b33;
  --border-strong: #333a44;
  --text: #e9ecf1;
  --text-dim: #a3abb8;
  --text-faint: #6f7784;
  --accent: #ea580c;
  --accent-soft: rgba(234, 88, 12, 0.12);
  --accent-2: #fb923c;
  --valid: #22c55e;
  --valid-soft: rgba(34, 197, 94, 0.12);
  --invalid: #ef4444;
  --invalid-soft: rgba(239, 68, 68, 0.12);
  --warn: #f59e0b;
  --warn-soft: rgba(245, 158, 11, 0.12);
  --unknown: #38bdf8;
  --unknown-soft: rgba(56, 189, 248, 0.12);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.9);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 50% -160px, rgba(234, 88, 12, 0.16), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

svg.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 650;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

::selection {
  background: rgba(234, 88, 12, 0.35);
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ----------------------------- header ----------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(10, 11, 13, 0.78);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(150deg, var(--accent), #b93f06);
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(234, 88, 12, 0.8);
}

.brand-mark svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-text strong {
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.brand-text small {
  color: var(--text-faint);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.api-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-dim);
  background: var(--panel);
  white-space: nowrap;
}

.api-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-faint);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.03);
}

.api-pill.is-ok .dot {
  background: var(--valid);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.api-pill.is-warn .dot {
  background: var(--warn);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.api-pill.is-down .dot {
  background: var(--invalid);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* ----------------------------- buttons ---------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 17px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--panel-2);
  color: var(--text);
  font-size: 14px;
  font-weight: 560;
  white-space: nowrap;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  background: #20252d;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(160deg, var(--accent), #cf4c07);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: 0 10px 26px -14px rgba(234, 88, 12, 0.95);
}

.btn-primary:hover {
  background: linear-gradient(160deg, #f2610f, #d95208);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-dim);
}

.btn-ghost:hover {
  background: var(--panel);
  color: var(--text);
}

.btn-sm {
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: 8px;
}

.btn-sm .icon {
  width: 15px;
  height: 15px;
}

.btn.is-loading .icon {
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ------------------------------ hero ------------------------------ */

.hero {
  padding: 52px 0 30px;
  max-width: 780px;
}

.hero h1 {
  font-size: clamp(28px, 4.4vw, 42px);
  letter-spacing: -0.035em;
  font-weight: 680;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent-2);
}

.hero p {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 15.5px;
  max-width: 660px;
}

.hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 12.5px;
  color: var(--text-dim);
}

.hero-points .icon {
  width: 14px;
  height: 14px;
  color: var(--accent-2);
}

/* ----------------------------- notice ----------------------------- */

.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 22px;
  padding: 12px 14px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: var(--radius-sm);
  background: var(--warn-soft);
  color: #f7d9a8;
  font-size: 13.5px;
}

.notice .icon {
  color: var(--warn);
  margin-top: 1px;
}

/* ------------------------------ tabs ------------------------------ */

.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-soft);
  margin-bottom: 18px;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-dim);
  font-size: 13.5px;
  font-weight: 550;
  transition: background 0.15s ease, color 0.15s ease;
}

.tab:hover {
  color: var(--text);
}

.tab.is-active {
  background: var(--panel-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.tab .icon {
  width: 16px;
  height: 16px;
}

.tab-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 11.5px;
  font-weight: 650;
  display: inline-grid;
  place-items: center;
}

/* --------------------------- input card --------------------------- */

.input-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), #121519);
  box-shadow: var(--shadow);
  padding: 14px;
}

.input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  background: #0d0f12;
  padding: 6px 6px 6px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-row:focus-within {
  border-color: rgba(234, 88, 12, 0.65);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.13);
}

.input-icon {
  width: 19px;
  height: 19px;
  flex: none;
  color: var(--text-faint);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.input-row input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  font-family: var(--mono);
  letter-spacing: -0.01em;
  outline: none;
}

.input-row input::placeholder {
  color: #4d5561;
  font-family: var(--sans);
  letter-spacing: 0;
}

.input-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 4px 2px;
}

/* switch */

.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-track {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: #2a3038;
  border: 1px solid var(--border-strong);
  transition: background 0.18s ease, border-color 0.18s ease;
  flex: none;
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #8d96a3;
  transition: transform 0.18s ease, background 0.18s ease;
}

.switch input:checked + .switch-track {
  background: rgba(234, 88, 12, 0.85);
  border-color: rgba(251, 146, 60, 0.7);
}

.switch input:checked + .switch-track::after {
  transform: translateX(14px);
  background: #fff;
}

.switch input:focus-visible + .switch-track {
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.25);
}

.switch-label {
  font-size: 13px;
  color: var(--text-dim);
}

.switch-label small {
  color: var(--text-faint);
  font-size: 12px;
  margin-left: 4px;
}

.examples {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-faint);
}

.chip {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  font-size: 12px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent-2);
}

/* --------------------------- empty state -------------------------- */

.empty-state {
  margin-top: 22px;
  padding: 46px 24px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: rgba(20, 23, 28, 0.4);
  text-align: center;
}

.empty-icon {
  width: 30px;
  height: 30px;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.empty-state h2 {
  font-size: 16px;
  color: var(--text-dim);
}

.empty-state p {
  margin-top: 6px;
  color: var(--text-faint);
  font-size: 13.5px;
}

/* --------------------------- result card -------------------------- */

.result-area {
  margin-top: 22px;
}

.result-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: rise 0.28s ease;
}

@keyframes rise {
  from {
    transform: translateY(6px);
  }
}

.result-card.status-valid {
  border-color: rgba(34, 197, 94, 0.35);
}

.result-card.status-invalid {
  border-color: rgba(239, 68, 68, 0.35);
}

.result-card.status-risky {
  border-color: rgba(245, 158, 11, 0.35);
}

.result-card.status-unknown {
  border-color: rgba(56, 189, 248, 0.32);
}

.result-head {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.score-ring {
  position: relative;
  width: 88px;
  height: 88px;
  flex: none;
}

.score-ring svg {
  width: 88px;
  height: 88px;
  transform: rotate(-90deg);
}

.score-ring .track {
  fill: none;
  stroke: #262b33;
  stroke-width: 6;
}

.score-ring .value {
  fill: none;
  stroke: currentColor;
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.score-ring .number {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-size: 23px;
  font-weight: 680;
  letter-spacing: -0.03em;
}

.score-ring .number small {
  font-size: 10px;
  color: var(--text-faint);
  font-weight: 500;
  align-self: center;
  margin-top: 6px;
}

.status-valid .score-ring {
  color: var(--valid);
}

.status-invalid .score-ring {
  color: var(--invalid);
}

.status-risky .score-ring {
  color: var(--warn);
}

.status-unknown .score-ring {
  color: var(--unknown);
}

.result-summary {
  min-width: 0;
  flex: 1;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-badge .icon {
  width: 14px;
  height: 14px;
}

.status-valid .status-badge {
  background: var(--valid-soft);
  color: var(--valid);
}

.status-invalid .status-badge {
  background: var(--invalid-soft);
  color: var(--invalid);
}

.status-risky .status-badge {
  background: var(--warn-soft);
  color: var(--warn);
}

.status-unknown .status-badge {
  background: var(--unknown-soft);
  color: var(--unknown);
}

.result-email {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: clamp(16px, 2.4vw, 20px);
  font-weight: 600;
  letter-spacing: -0.02em;
  word-break: break-all;
}

.result-reason {
  margin-top: 5px;
  color: var(--text-dim);
  font-size: 13.5px;
  max-width: 62ch;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 11.5px;
  color: var(--text-dim);
}

.meta-chip .icon {
  width: 12px;
  height: 12px;
  color: var(--text-faint);
}

.result-actions {
  display: flex;
  gap: 8px;
  align-self: flex-start;
  flex: none;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.icon-btn:hover {
  background: var(--panel-2);
  color: var(--text);
  border-color: var(--border-strong);
}

.suggestion {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 22px 18px;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(234, 88, 12, 0.32);
  background: var(--accent-soft);
  font-size: 13px;
  color: #ffd3b4;
  flex-wrap: wrap;
}

.suggestion .icon {
  color: var(--accent-2);
}

.suggestion button {
  border: 0;
  background: transparent;
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
}

.result-body {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  border-top: 1px solid var(--border);
}

.checks,
.details {
  padding: 20px 22px 24px;
}

.details {
  border-left: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.14);
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.panel-title .icon {
  width: 14px;
  height: 14px;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.check-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.12s ease;
}

.check-item:hover {
  background: rgba(255, 255, 255, 0.025);
}

.check-icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.check-item.status-pass .check-icon {
  color: var(--valid);
}

.check-item.status-fail .check-icon {
  color: var(--invalid);
}

.check-item.status-warn .check-icon {
  color: var(--warn);
}

.check-item.status-skip .check-icon {
  color: var(--text-faint);
}

.check-label {
  font-size: 13.5px;
  font-weight: 560;
}

.check-detail {
  color: var(--text-faint);
  font-size: 12.5px;
  margin-top: 1px;
  overflow-wrap: anywhere;
}

.check-ms {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  padding-top: 2px;
}

.detail-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.detail-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
  font-size: 12.5px;
}

.detail-row:last-child {
  border-bottom: 0;
}

.detail-row dt {
  color: var(--text-faint);
}

.detail-row dd {
  margin: 0;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.detail-row dd.plain {
  font-family: var(--sans);
  font-size: 12.5px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 550;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-dim);
}

.tag .icon {
  width: 12px;
  height: 12px;
}

.tag.is-bad {
  border-color: rgba(239, 68, 68, 0.35);
  background: var(--invalid-soft);
  color: #fca5a5;
}

.tag.is-warn {
  border-color: rgba(245, 158, 11, 0.32);
  background: var(--warn-soft);
  color: #fcd34d;
}

.tag.is-good {
  border-color: rgba(34, 197, 94, 0.3);
  background: var(--valid-soft);
  color: #86efac;
}

.tag.is-info {
  border-color: rgba(56, 189, 248, 0.28);
  background: var(--unknown-soft);
  color: #7dd3fc;
}

.section-gap {
  margin-top: 20px;
}

/* skeleton / loading */

.loading-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 26px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-dim);
  font-size: 14px;
}

.loading-card .icon {
  width: 20px;
  height: 20px;
  color: var(--accent-2);
  animation: spin 0.9s linear infinite;
}

.loading-card .steps {
  color: var(--text-faint);
  font-size: 12.5px;
  margin-top: 2px;
}

/* ----------------------------- bulk ------------------------------- */

.bulk-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 4px 12px;
}

.bulk-head h2 {
  font-size: 16px;
}

.bulk-head p {
  color: var(--text-faint);
  font-size: 13px;
  margin-top: 3px;
}

.bulk-head-actions {
  display: flex;
  gap: 8px;
  flex: none;
}

#bulkInput {
  width: 100%;
  min-height: 170px;
  resize: vertical;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  background: #0d0f12;
  color: var(--text);
  padding: 14px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.65;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#bulkInput:focus {
  border-color: rgba(234, 88, 12, 0.65);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.13);
}

#bulkInput::placeholder {
  color: #464e59;
}

.bulk-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bulk-hint {
  color: var(--text-faint);
  font-size: 12.5px;
}

.progress {
  height: 4px;
  margin: 14px 2px 2px;
  border-radius: 999px;
  background: #1d2229;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.25s ease;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.summary-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel);
  padding: 13px 15px;
}

.summary-card .label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

.summary-card .label .icon {
  width: 13px;
  height: 13px;
}

.summary-card .value {
  font-size: 24px;
  font-weight: 680;
  letter-spacing: -0.03em;
  margin-top: 3px;
}

.summary-card.valid .value {
  color: var(--valid);
}

.summary-card.invalid .value {
  color: var(--invalid);
}

.summary-card.risky .value {
  color: var(--warn);
}

.summary-card.unknown .value {
  color: var(--unknown);
}

.bulk-results {
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.filters {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.filter {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-faint);
  font-size: 12.5px;
  font-weight: 550;
}

.filter:hover {
  color: var(--text);
}

.filter.is-active {
  background: var(--panel-2);
  border-color: var(--border-strong);
  color: var(--text);
}

.table-wrap {
  overflow-x: auto;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.results-table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 650;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.14);
}

.results-table td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.results-table tr:last-child td {
  border-bottom: 0;
}

.results-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.results-table .addr {
  font-family: var(--mono);
  font-size: 12.5px;
  overflow-wrap: anywhere;
}

.results-table .num {
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.results-table .reason {
  color: var(--text-faint);
  font-size: 12.5px;
  max-width: 360px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pill .icon {
  width: 12px;
  height: 12px;
}

.pill.valid {
  background: var(--valid-soft);
  color: var(--valid);
}

.pill.invalid {
  background: var(--invalid-soft);
  color: var(--invalid);
}

.pill.risky {
  background: var(--warn-soft);
  color: var(--warn);
}

.pill.unknown {
  background: var(--unknown-soft);
  color: var(--unknown);
}

/* ----------------------------- footer ----------------------------- */

.site-footer {
  margin-top: auto;
  padding: 34px 0 28px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 12.5px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-note {
  max-width: 56ch;
}

/* ------------------------------ toast ----------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 20px);
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: #1b2027;
  color: var(--text);
  font-size: 13px;
  box-shadow: 0 18px 40px -18px #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
  max-width: min(92vw, 460px);
  text-align: center;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* --------------------------- responsive --------------------------- */

@media (max-width: 860px) {
  .result-body {
    grid-template-columns: 1fr;
  }

  .details {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .wrap {
    padding: 0 16px;
  }

  .header-inner {
    height: 60px;
  }

  .brand-text small {
    display: none;
  }

  .hero {
    padding: 34px 0 22px;
  }

  .hero p {
    font-size: 14.5px;
  }

  .input-row {
    flex-wrap: wrap;
    padding: 10px;
  }

  .input-row input {
    flex: 1 1 100%;
    order: 2;
    height: 36px;
    font-size: 15px;
    padding-left: 4px;
  }

  .input-icon {
    order: 1;
  }

  .input-row .btn {
    order: 3;
    width: 100%;
  }

  .input-meta {
    align-items: flex-start;
  }

  .result-head {
    flex-wrap: wrap;
    padding: 18px;
    gap: 14px;
  }

  .score-ring {
    width: 68px;
    height: 68px;
  }

  .score-ring svg {
    width: 68px;
    height: 68px;
  }

  .score-ring .number {
    font-size: 18px;
  }

  .result-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .checks,
  .details {
    padding: 16px;
  }

  .detail-row {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .bulk-head {
    flex-direction: column;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .api-pill {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
