/* ============================================================
   WHOIS查询 — UI
   ============================================================ */

:root {
  --font-sans: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", "Cascadia Code", "Roboto Mono",
    Consolas, "Liberation Mono", monospace;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 13px;
  --radius-sm: 9px;
  --header-h: 72px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #06090f;
  --bg-soft: #080d15;
  --panel: rgba(255, 255, 255, 0.036);
  --panel-strong: rgba(255, 255, 255, 0.055);
  --panel-solid: #0b111b;
  --panel-solid-2: #101823;
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #e9eef7;
  --text-soft: #c4cedd;
  --muted: #8a99ad;
  --faint: #5c6a7d;
  --accent: #5eead4;
  --accent-soft: rgba(17, 17, 17, 0.12);
  --accent-2: #818cf8;
  --accent-3: #38bdf8;
  --good: #34d399;
  --good-soft: rgba(52, 211, 153, 0.12);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.1);
  --bad: #fb7185;
  --bad-soft: rgba(251, 113, 133, 0.1);
  --info-soft: rgba(17, 17, 17, 0.1);
  --header-bg: rgba(6, 9, 15, 0.72);
  --grid: rgba(255, 255, 255, 0.03);
  --card-bg: linear-gradient(158deg, rgba(255, 255, 255, 0.047), rgba(255, 255, 255, 0.014));
  --card-hover: rgba(255, 255, 255, 0.055);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
  --shadow-soft: 0 10px 36px rgba(0, 0, 0, 0.32);
  --skeleton: linear-gradient(100deg, rgba(255, 255, 255, 0.035) 25%, rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0.035) 65%);
  --btn-text: #04110f;
  --scrollbar: rgba(255, 255, 255, 0.14);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f6f6f4;
  --panel: rgba(0, 0, 0, 0.022);
  --panel-strong: rgba(0, 0, 0, 0.045);
  --panel-solid: #ffffff;
  --panel-solid-2: #f7f7f5;
  --line: rgba(0, 0, 0, 0.09);
  --line-strong: rgba(0, 0, 0, 0.17);
  --text: #111111;
  --text-soft: #2b2b2b;
  --muted: #5f5f5f;
  --faint: #8a8a8a;
  --accent: #111111;
  --accent-soft: rgba(0, 0, 0, 0.06);
  --accent-2: #4a4a4a;
  --accent-3: #666666;
  --good: #157347;
  --good-soft: rgba(21, 115, 71, 0.08);
  --warn: #995a00;
  --warn-soft: rgba(153, 90, 0, 0.08);
  --bad: #b42318;
  --bad-soft: rgba(180, 35, 24, 0.07);
  --info-soft: rgba(0, 0, 0, 0.045);
  --header-bg: rgba(255, 255, 255, 0.83);
  --grid: rgba(0, 0, 0, 0.04);
  --card-bg: #ffffff;
  --card-hover: #fafaf9;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 8px 28px rgba(0, 0, 0, 0.055);
  --skeleton: linear-gradient(100deg, rgba(0, 0, 0, 0.035) 25%, rgba(0, 0, 0, 0.075) 45%, rgba(0, 0, 0, 0.035) 65%);
  --btn-text: #ffffff;
  --scrollbar: rgba(0, 0, 0, 0.16);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--scrollbar) transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(17, 17, 17, 0.35);
  color: var(--text);
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

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

svg {
  display: block;
}

.ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 14px;
  line-height: 1;
}

.ic svg {
  width: 1em;
  height: 1em;
}

.copyable {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
}

.external-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

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

.chip .ic {
  font-size: 10px;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

/* ---------- background ---------- */

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.55;
}

.aurora--1 {
  top: -260px;
  left: calc(50% - 520px);
  width: 760px;
  height: 620px;
  background: radial-gradient(circle, rgba(17, 17, 17, 0.28), transparent 65%);
  animation: drift-a 22s ease-in-out infinite alternate;
}

.aurora--2 {
  top: -180px;
  right: calc(50% - 560px);
  width: 720px;
  height: 580px;
  background: radial-gradient(circle, rgba(17, 17, 17, 0.26), transparent 65%);
  animation: drift-b 26s ease-in-out infinite alternate;
}

.aurora--3 {
  top: 480px;
  left: calc(50% - 300px);
  width: 600px;
  height: 480px;
  background: radial-gradient(circle, rgba(17, 17, 17, 0.12), transparent 68%);
  animation: drift-a 30s ease-in-out infinite alternate-reverse;
}

:root[data-theme="light"] .aurora {
  opacity: 0.36;
  filter: blur(120px);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 35%, transparent 78%);
}

@keyframes drift-a {
  from { transform: translate3d(-30px, 0, 0) scale(1); }
  to { transform: translate3d(40px, 30px, 0) scale(1.08); }
}

@keyframes drift-b {
  from { transform: translate3d(20px, -10px, 0) scale(1.02); }
  to { transform: translate3d(-40px, 40px, 0) scale(0.96); }
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border-radius: 12px;
  outline: none;
}

.brand:focus-visible {
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: radial-gradient(120% 120% at 20% 10%, rgba(17, 17, 17, 0.18), rgba(17, 17, 17, 0.08));
  border: 1px solid var(--line-strong);
}

.brand-mark svg {
  width: 32px;
  height: 32px;
}

.brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.brand-en {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}

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

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.header-link svg {
  width: 17px;
  height: 17px;
}

.header-link:hover {
  color: var(--text);
  background: var(--panel);
  border-color: var(--line);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

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

.icon-button svg {
  width: 18px;
  height: 18px;
}

:root[data-theme="dark"] .icon-sun,
:root[data-theme="light"] .icon-moon {
  display: none;
}

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

.hero {
  position: relative;
  padding: 82px 0 38px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: fade-up 0.6s ease both;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(17, 17, 17, 0.45);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(17, 17, 17, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(17, 17, 17, 0); }
  100% { box-shadow: 0 0 0 0 rgba(17, 17, 17, 0); }
}

.hero h1 {
  margin: 26px auto 0;
  max-width: 900px;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.08;
  font-weight: 660;
  letter-spacing: -0.035em;
  animation: fade-up 0.65s 0.05s ease both;
}

.gradient-text {
  background: linear-gradient(96deg, #111111 4%, #4a4a4a 55%, #777777 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

:root[data-theme="light"] .gradient-text {
  background: linear-gradient(96deg, #111111 4%, #4a4a4a 55%, #777777 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 620px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  animation: fade-up 0.7s 0.1s ease both;
}

/* ---------- search ---------- */

.search-form {
  position: relative;
  z-index: 10;
  max-width: 760px;
  margin: 36px auto 0;
  animation: fade-up 0.75s 0.14s ease both;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 68px;
  padding: 7px 7px 7px 22px;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: var(--panel-solid);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

:root[data-theme="dark"] .search-box {
  background: linear-gradient(180deg, rgba(17, 25, 38, 0.94), rgba(9, 14, 22, 0.96));
}

.search-box:focus-within {
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-soft);
}

.search-icon {
  display: inline-flex;
  color: var(--faint);
  flex: 0 0 auto;
}

.search-icon svg {
  width: 21px;
  height: 21px;
}

.search-box input {
  flex: 1 1 auto;
  min-width: 0;
  height: 52px;
  padding: 0 4px 0 10px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 17px;
  letter-spacing: 0.005em;
}

.search-box input::placeholder {
  color: var(--faint);
}

.key-hint {
  flex: 0 0 auto;
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  margin-right: 6px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
}

.search-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 54px;
  padding: 0 24px;
  border: 0;
  border-radius: 14px;
  background: #111111;
  color: #ffffff;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

:root[data-theme="light"] .search-button {
  background: #111111;
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.22);
}

.search-button svg {
  width: 18px;
  height: 18px;
  transition: transform 0.18s ease;
}

.search-button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(17, 17, 17, 0.24);
}

.search-button:hover svg {
  transform: translateX(2px);
}

.search-button:active {
  transform: translateY(0);
}

.search-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* suggestions */

.suggestions {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 30;
  padding: 7px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: var(--panel-solid);
  box-shadow: var(--shadow);
  text-align: left;
  overflow: hidden;
}

.suggestions-header {
  padding: 8px 12px 6px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.suggestion {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  color: var(--text);
  transition: background 0.12s ease;
}

.suggestion:hover,
.suggestion.is-active {
  background: var(--panel-strong);
}

.suggestion-mark {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

.suggestion-main {
  flex: 1 1 auto;
  min-width: 0;
}

.suggestion-domain {
  display: block;
  font-size: 14px;
  font-weight: 550;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggestion-meta {
  display: block;
  margin-top: 1px;
  color: var(--faint);
  font-size: 11px;
}

.suggestion-badge {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.suggestion-badge--rdap {
  color: var(--accent);
  border-color: rgba(17, 17, 17, 0.24);
  background: var(--accent-soft);
}

/* under search */

.under-search {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 26px;
  margin-top: 20px;
  animation: fade-up 0.8s 0.18s ease both;
}

.examples {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.examples-label {
  color: var(--faint);
  font-size: 12px;
}

.examples button {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.examples button:hover {
  color: var(--accent);
  border-color: rgba(17, 17, 17, 0.28);
  background: var(--accent-soft);
}

.tlds-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  transition: color 0.16s ease;
}

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

.tlds-link svg {
  width: 14px;
  height: 14px;
}

/* hero stats */

.hero-stats {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  margin: 48px auto 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  animation: fade-up 0.85s 0.22s ease both;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 170px;
  padding: 0 30px;
  border-right: 1px solid var(--line);
  text-align: left;
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.stat span {
  color: var(--faint);
  font-size: 11.5px;
}

/* ---------- features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 26px 0 70px;
}

.feature-card {
  padding: 22px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--card-bg);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.feature-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  background: var(--card-hover);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--accent-soft);
  color: var(--accent);
}

.feature-icon svg {
  width: 21px;
  height: 21px;
}

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.005em;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

/* ---------- results ---------- */

.result-container {
  padding: 10px 0 10px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.result-shell {
  animation: fade-up 0.45s ease both;
}

.result-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 26px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-strong);
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
}

.domain-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  border: 1px solid rgba(17, 17, 17, 0.22);
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(17, 17, 17, 0.26), transparent 60%),
    linear-gradient(150deg, rgba(17, 17, 17, 0.22), rgba(17, 17, 17, 0.12));
  color: var(--text);
  font-size: 26px;
  font-weight: 650;
  text-transform: uppercase;
}

.domain-head-main {
  flex: 1 1 auto;
  min-width: 0;
}

.domain-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.domain-name {
  margin: 0;
  font-size: clamp(23px, 3.4vw, 31px);
  line-height: 1.2;
  font-weight: 620;
  letter-spacing: -0.025em;
  word-break: break-all;
}

.domain-ascii {
  margin: 3px 0 0;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

.domain-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.tag,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.tag--accent {
  color: var(--accent);
  border-color: rgba(17, 17, 17, 0.25);
  background: var(--accent-soft);
}

.tag--good {
  color: var(--good);
  border-color: rgba(52, 211, 153, 0.24);
  background: var(--good-soft);
}

.tag--warn {
  color: var(--warn);
  border-color: rgba(251, 191, 36, 0.24);
  background: var(--warn-soft);
}

.tag--bad {
  color: var(--bad);
  border-color: rgba(251, 113, 133, 0.24);
  background: var(--bad-soft);
}

.tag--purple {
  color: var(--accent-2);
  border-color: rgba(17, 17, 17, 0.25);
  background: rgba(17, 17, 17, 0.1);
}

.result-head-side {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
}

.meta-line {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 10.5px;
  white-space: nowrap;
}

.meta-line .sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--faint);
  opacity: 0.6;
}

.result-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.action-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 11px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 11.5px;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.action-button:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--panel-strong);
}

.action-button svg {
  width: 14px;
  height: 14px;
}

/* notices */

.notice-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(251, 191, 36, 0.18);
  background: var(--warn-soft);
  color: var(--text-soft);
  font-size: 12.5px;
  line-height: 1.55;
}

.notice svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--warn);
}

.notice--info {
  border-color: rgba(17, 17, 17, 0.18);
  background: var(--info-soft);
}

.notice--info svg {
  color: var(--accent-3);
}

/* grid */

.result-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--card-bg);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  pointer-events: none;
}

:root[data-theme="light"] .card::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
}

.span-12 { grid-column: span 12; }
.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }

.card-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 18px 20px 0;
}

.card-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--accent);
}

.card-icon svg {
  width: 17px;
  height: 17px;
}

.card-head-text {
  flex: 1 1 auto;
  min-width: 0;
}

.card-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.005em;
}

.card-sub {
  margin: 1px 0 0;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.02em;
}

.card-head-action {
  flex: 0 0 auto;
  margin-left: auto;
}

.card-body {
  padding: 16px 20px 20px;
}

/* copyable */

.copy-button {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--faint);
  opacity: 0;
  transition: opacity 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.copy-button svg {
  width: 13px;
  height: 13px;
}

.copy-button:hover {
  color: var(--text);
  background: var(--panel-strong);
}

.copyable:hover .copy-button,
.copy-button:focus-visible {
  opacity: 1;
}

/* registrar */

.registrar-block {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.registrar-logo {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(17, 17, 17, 0.22);
  background: rgba(17, 17, 17, 0.1);
  color: var(--accent-2);
}

.registrar-logo svg {
  width: 21px;
  height: 21px;
}

.registrar-text {
  flex: 1 1 auto;
  min-width: 0;
}

.kicker {
  display: block;
  margin-bottom: 1px;
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.registrar-name {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  word-break: break-word;
}

.registrar-name.is-muted {
  color: var(--faint);
  font-weight: 500;
}

.iana-chip {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 10px;
}

/* date blocks */

.date-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.date-item {
  padding: 12px 13px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--panel);
}

.date-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--faint);
  font-size: 10.5px;
  letter-spacing: 0.03em;
}

.date-label svg {
  width: 13px;
  height: 13px;
}

.date-value {
  margin-top: 5px;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.4;
  word-break: break-word;
}

.date-value.is-muted {
  color: var(--faint);
  font-weight: 500;
}

.date-note {
  margin-top: 3px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 10px;
}

.date-note--good { color: var(--good); }
.date-note--warn { color: var(--warn); }
.date-note--bad { color: var(--bad); }

.meter-wrap {
  margin-top: 14px;
}

.meter {
  height: 5px;
  border-radius: 999px;
  background: var(--panel-strong);
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-3) 60%, var(--accent-2));
  transition: width 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.meter-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  color: var(--faint);
  font-size: 10px;
}

/* statuses */

.status-block {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.block-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--faint);
  font-size: 10.5px;
  letter-spacing: 0.03em;
}

.status-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.status-pill::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.8;
}

.status-pill--ok { color: var(--good); border-color: rgba(52, 211, 153, 0.22); background: var(--good-soft); }
.status-pill--warn { color: var(--warn); border-color: rgba(251, 191, 36, 0.2); background: var(--warn-soft); }
.status-pill--bad { color: var(--bad); border-color: rgba(251, 113, 133, 0.2); background: var(--bad-soft); }
.status-pill--info { color: var(--accent-3); border-color: rgba(17, 17, 17, 0.2); background: var(--info-soft); }

/* nameservers */

.ns-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ns-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
}

.ns-item:last-child {
  border-bottom: 0;
}

.ns-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
}

.ns-icon svg {
  width: 13px;
  height: 13px;
}

.ns-name {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-soft);
  word-break: break-all;
}

.dnssec-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
}

.dnssec-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--faint);
}

.dot--good { background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); }
.dot--muted { background: var(--faint); }

/* TLD card */

.tld-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.tld-value {
  font-family: var(--font-mono);
  font-size: 29px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  word-break: break-all;
}

.tld-type {
  margin-top: 4px;
  color: var(--faint);
  font-size: 10.5px;
}

.tld-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.protocol-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 11.5px;
}

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

.protocol-label {
  color: var(--faint);
  white-space: nowrap;
}

.protocol-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-soft);
  word-break: break-all;
  text-align: right;
}

.protocol-value.is-muted {
  color: var(--faint);
}

/* DNS table */

.dns-table {
  max-height: 360px;
  overflow: auto;
  margin: -4px -4px 0;
  padding: 0 4px;
}

.dns-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 62px 24px;
  align-items: start;
  gap: 10px;
  padding: 8px 2px;
  border-bottom: 1px dashed var(--line);
}

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

.dns-type {
  display: inline-flex;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

.dns-type--a { color: var(--accent); border-color: rgba(17, 17, 17, 0.22); background: var(--accent-soft); }
.dns-type--aaaa { color: var(--accent-3); border-color: rgba(17, 17, 17, 0.22); background: var(--info-soft); }
.dns-type--mx { color: var(--accent-2); border-color: rgba(17, 17, 17, 0.22); background: rgba(17, 17, 17, 0.08); }
.dns-type--txt { color: var(--warn); border-color: rgba(251, 191, 36, 0.18); background: var(--warn-soft); }
.dns-type--caa { color: var(--good); border-color: rgba(52, 211, 153, 0.18); background: var(--good-soft); }

.dns-value {
  min-width: 0;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.55;
  word-break: break-all;
}

.dns-value .dns-prefix {
  color: var(--faint);
}

.dns-ttl {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-align: right;
  white-space: nowrap;
}

.dns-row .copy-button {
  margin-top: -3px;
}

.dns-section-note {
  margin-top: 10px;
  color: var(--faint);
  font-size: 10.5px;
}

.dns-section-note--warn {
  color: var(--warn);
}

.subdomain-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 14px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(17, 17, 17, 0.18);
  background: var(--info-soft);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.subdomain-note .ic {
  margin-top: 1px;
  color: var(--accent-3);
}

.dns-alt {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line-strong);
  background: var(--panel);
  color: var(--muted);
  font-size: 10.5px;
}

.dns-alt summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 10.5px;
}

.dns-alt-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
}

.dns-alt-source {
  flex: 0 0 auto;
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9px;
}

.dns-alt-values {
  min-width: 0;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
}

/* IP cards */

.ip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ip-card {
  position: relative;
  padding: 15px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.ip-card:hover {
  border-color: var(--line-strong);
  background: var(--panel-strong);
}

.ip-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ip-flag {
  font-size: 18px;
  line-height: 1;
}

.ip-addr {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 550;
  color: var(--text);
  word-break: break-all;
}

.ip-version {
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9px;
  white-space: nowrap;
}

.ip-provider {
  margin-top: 9px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  word-break: break-word;
}

.ip-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11.5px;
}

.ip-asn {
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid rgba(17, 17, 17, 0.2);
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-decoration: none;
}

.ip-asn:hover {
  border-color: rgba(17, 17, 17, 0.45);
}

.ip-location {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ip-location svg {
  width: 12px;
  height: 12px;
  color: var(--faint);
}

.ip-reverse {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px dashed var(--line);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
  word-break: break-all;
}

.ip-unavailable {
  opacity: 0.75;
}

.ip-unavailable .ip-provider {
  color: var(--faint);
  font-weight: 500;
}

/* contacts */

.contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.contact-card {
  padding: 15px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--panel);
}

.contact-head {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.contact-role {
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.22);
  background: rgba(17, 17, 17, 0.09);
  color: var(--accent-2);
  font-size: 9.5px;
  letter-spacing: 0.02em;
}

.contact-role--tech {
  color: var(--accent-3);
  border-color: rgba(17, 17, 17, 0.22);
  background: var(--info-soft);
}

.contact-role--admin {
  color: var(--accent);
  border-color: rgba(17, 17, 17, 0.22);
  background: var(--accent-soft);
}

.contact-name {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  word-break: break-word;
}

.contact-org {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  word-break: break-word;
}

.contact-rows {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 10px;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  line-height: 1.5;
}

.contact-label {
  flex: 0 0 34px;
  color: var(--faint);
  font-size: 10px;
  padding-top: 1px;
}

.contact-value {
  min-width: 0;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 10.5px;
  word-break: break-all;
}

.contact-value a:hover {
  color: var(--accent);
}

.redacted-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line-strong);
  color: var(--faint);
  font-size: 11px;
  line-height: 1.55;
}

.redacted-note svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 1px;
}

/* raw */

.raw-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.raw-tab {
  padding: 4px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.03em;
}

.raw-tab.is-active {
  background: var(--panel-strong);
  color: var(--text);
}

.raw-panel {
  position: relative;
  margin-top: 12px;
}

.raw-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 5px;
  z-index: 2;
}

.raw-copy {
  height: 25px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: var(--panel-solid);
  color: var(--muted);
  font-size: 10px;
}

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

.raw-pre {
  margin: 0;
  max-height: 420px;
  overflow: auto;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  tab-size: 2;
}

/* empty / availability / errors */

.panel-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 22px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line-strong);
  background: var(--panel);
}

.panel-state-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: var(--muted);
}

.panel-state-icon svg {
  width: 25px;
  height: 25px;
}

.panel-state h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.panel-state p {
  max-width: 460px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.avail-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(52, 211, 153, 0.24);
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(52, 211, 153, 0.1), transparent 55%),
    var(--card-bg);
}

.avail-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  border: 1px solid rgba(52, 211, 153, 0.28);
  background: var(--good-soft);
  color: var(--good);
}

.avail-icon svg {
  width: 22px;
  height: 22px;
}

.avail-card h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 620;
  letter-spacing: -0.015em;
}

.avail-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.avail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.avail-actions button {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.avail-actions button:hover {
  color: var(--good);
  border-color: rgba(52, 211, 153, 0.3);
  background: var(--good-soft);
}

.error-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 50px 24px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(251, 113, 133, 0.2);
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(251, 113, 133, 0.08), transparent 55%),
    var(--card-bg);
}

.error-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 16px;
  border: 1px solid rgba(251, 113, 133, 0.26);
  background: var(--bad-soft);
  color: var(--bad);
}

.error-icon svg {
  width: 27px;
  height: 27px;
}

.error-title {
  margin: 0;
  font-size: 21px;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.error-message {
  max-width: 520px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.error-suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}

.error-suggestions button {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 11px;
}

.error-suggestions button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.error-hint {
  margin-top: 18px;
  color: var(--faint);
  font-size: 11px;
}

/* skeleton */

.sk-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
}

.spinner {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  border-top-color: var(--accent);
  animation: spin 0.75s linear infinite;
}

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

.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--skeleton);
  background-size: 220% 100%;
  animation: shimmer 1.5s infinite linear;
}

@keyframes shimmer {
  from { background-position: 180% 0; }
  to { background-position: -80% 0; }
}

.sk-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 26px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--card-bg);
}

.sk-avatar { width: 62px; height: 62px; border-radius: 18px; }
.sk-title { width: 260px; height: 26px; }
.sk-sub { width: 180px; height: 11px; margin-top: 9px; }
.sk-tags { width: 140px; height: 18px; margin-top: 10px; border-radius: 999px; }

.sk-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.sk-card {
  grid-column: span 6;
  min-height: 220px;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--card-bg);
}

.sk-line { height: 12px; margin-bottom: 10px; }
.sk-line.w-60 { width: 60%; }
.sk-line.w-40 { width: 40%; }
.sk-line.w-80 { width: 80%; }
.sk-line.w-25 { width: 25%; }
.sk-line.tall { height: 24px; }

/* footer */

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding: 34px 0 42px;
}

.footer-brand p {
  margin: 6px 0 0;
  color: var(--faint);
  font-size: 12px;
}

.footer-meta {
  max-width: 620px;
  text-align: right;
}

.footer-meta p {
  margin: 0 0 4px;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.6;
}

.footer-meta .copyright {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.02em;
}

/* toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 100;
  transform: translate(-50%, 16px);
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--panel-solid);
  box-shadow: var(--shadow-soft);
  color: var(--text);
  font-size: 12.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

/* modal */

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 12, 0.66);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fade-in 0.2s ease both;
}

:root[data-theme="light"] .modal-backdrop {
  background: rgba(15, 23, 42, 0.3);
}

.modal-dialog {
  position: relative;
  width: min(900px, 100%);
  max-height: min(82vh, 820px);
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  background: var(--panel-solid);
  box-shadow: var(--shadow);
  animation: modal-in 0.24s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  overflow: hidden;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.modal-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11.5px;
}

.modal-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 24px 10px;
  padding: 0 12px;
  height: 44px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.modal-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.modal-search .search-icon svg {
  width: 17px;
  height: 17px;
}

.modal-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 13px;
}

.modal-filter-count {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 10px;
  white-space: nowrap;
}

.modal-body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 8px 24px 20px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  align-content: start;
}

.tld-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  text-align: left;
  transition: border-color 0.14s ease, background 0.14s ease, color 0.14s ease;
  overflow: hidden;
}

.tld-chip:hover {
  border-color: rgba(17, 17, 17, 0.32);
  background: var(--accent-soft);
  color: var(--text);
}

.tld-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tld-chip i {
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--warn);
  opacity: 0.65;
}

.tld-chip i.is-rdap {
  background: var(--accent);
  opacity: 1;
}

.modal-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 24px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 10.5px;
}

.modal-foot span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--warn);
}

.legend-dot--rdap {
  background: var(--accent);
}

.legend-dot--whois {
  background: var(--warn);
}

.modal-hint {
  margin-left: auto;
}

.modal-empty {
  grid-column: 1 / -1;
  padding: 34px;
  text-align: center;
  color: var(--faint);
  font-size: 12px;
}

body.modal-open {
  overflow: hidden;
}

/* ---------- SEO content / FAQ ---------- */

.seo-content {
  padding: 8px 0 64px;
}

.seo-head {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.seo-head h2,
.faq h2 {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 620;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.seo-head > p {
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.seo-grid article {
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--card-bg);
}

.seo-grid h3 {
  margin: 0 0 7px;
  font-size: 14px;
  font-weight: 600;
}

.seo-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.faq {
  max-width: 920px;
  margin: 34px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.faq details {
  padding: 14px 2px;
  border-bottom: 1px dashed var(--line);
}

.faq summary {
  cursor: pointer;
  color: var(--text-soft);
  font-size: 13.5px;
  font-weight: 550;
  line-height: 1.6;
}

.faq summary::marker {
  color: var(--accent);
}

.faq details p {
  max-width: 860px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}

.faq code {
  padding: 1px 5px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 11px;
}

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

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1024px) {
  .span-7,
  .span-5,
  .span-6 {
    grid-column: span 12;
  }

  .sk-card {
    grid-column: span 12;
  }

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

  .modal-body {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .result-head {
    flex-wrap: wrap;
  }

  .result-head-side {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .ip-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    width: calc(100% - 32px);
  }

  .hero {
    padding-top: 52px;
  }

  .hero h1 {
    font-size: clamp(34px, 9.5vw, 48px);
  }

  .lede {
    font-size: 14.5px;
  }

  .header-link {
    width: auto;
    padding: 0 10px;
    font-size: 12.5px;
  }

  .brand-en {
    display: none;
  }

  .search-box {
    height: 62px;
    padding-left: 16px;
  }

  .search-box input {
    height: 48px;
    font-size: 16px;
  }

  .search-button {
    height: 48px;
    padding: 0 18px;
  }

  .key-hint {
    display: none;
  }

  .hero-stats {
    margin-top: 34px;
  }

  .stat {
    width: 50%;
    min-width: 0;
    padding: 10px 14px;
    border-right: 0;
  }

  .stat:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .features {
    grid-template-columns: 1fr;
    padding-bottom: 50px;
  }

  .date-grid {
    grid-template-columns: 1fr;
  }

  .domain-avatar {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    font-size: 22px;
  }

  .result-head {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: 12px 14px;
    padding: 18px;
  }

  .domain-avatar {
    grid-column: 1;
    grid-row: 1;
  }

  .domain-head-main {
    grid-column: 2;
    grid-row: 1;
  }

  .result-head-side {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .domain-name {
    font-size: 22px;
  }

  .card-head {
    padding: 16px 16px 0;
  }

  .card-body {
    padding: 14px 16px 16px;
  }

  .dns-row {
    grid-template-columns: 50px minmax(0, 1fr) 24px;
  }

  .dns-ttl {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    gap: 20px;
  }

  .footer-meta {
    text-align: left;
  }

  .modal {
    padding: 12px;
  }

  .modal-head {
    padding: 18px 18px 14px;
  }

  .modal-search {
    margin: 12px 18px 8px;
  }

  .modal-body {
    padding: 6px 18px 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .modal-foot {
    padding: 10px 18px;
  }

  .modal-hint {
    margin-left: 0;
  }

  .result-head-side {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .under-search {
    gap: 12px;
  }

  .examples-label {
    display: none;
  }

  .examples button:nth-child(n + 4) {
    display: none;
  }

  .search-button span {
    display: none;
  }

  .search-button {
    width: 48px;
    padding: 0;
  }

  .search-button svg {
    width: 20px;
    height: 20px;
  }

  .search-box {
    gap: 2px;
    padding-left: 13px;
    padding-right: 7px;
  }

  .search-box input {
    padding-left: 8px;
  }

  .avail-card {
    flex-direction: column;
  }

  .meta-line {
    flex-wrap: wrap;
    white-space: normal;
  }

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

  .tld-links {
    justify-content: flex-start;
  }

  .tld-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .raw-tabs {
    width: 100%;
  }

  .card-head-action {
    margin-left: 0;
  }

  .card-head {
    flex-wrap: wrap;
  }
}

@media (hover: none) {
  .copy-button {
    opacity: 0.6;
  }
}

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

@media (max-width: 1024px) {
  .seo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .seo-grid {
    grid-template-columns: 1fr;
  }

  .seo-content {
    padding-bottom: 44px;
  }

  .seo-head > p {
    font-size: 13px;
  }
}

/* ---------- staircase scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
