/* Nameserver domain lookup */

.ce-ns-page {
  width: min(100%, 1140px);
  margin-inline: auto;
}

.ce-ns-hero,
.ce-ns-overview,
.ce-ns-results,
.ce-ns-state,
.ce-ip-as {
  border: 1px solid var(--ce-line-soft);
  background: var(--ce-surface);
}

.ce-ns-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 330px);
  align-items: center;
  gap: 38px;
  overflow: hidden;
  margin-top: 18px;
  padding: 40px;
  border-radius: var(--ce-radius-xl);
  background:
    radial-gradient(circle at 90% 0, rgba(20, 92, 255, 0.2), transparent 34rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent 48%),
    var(--ce-surface);
}

.ce-ns-eyebrow {
  margin: 0 0 9px;
  color: var(--ce-accent-light);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ce-ns-heading h1,
.ce-ns-state h2 {
  overflow-wrap: anywhere;
  margin: 0;
}

.ce-ns-heading h1 {
  font-size: clamp(38px, 5vw, 62px);
}

.ce-ns-lead,
.ce-ns-state > p:not(.ce-ns-eyebrow) {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--ce-text-muted);
  line-height: 1.7;
}

.ce-ns-search {
  display: flex;
  max-width: 650px;
  gap: 10px;
  margin-top: 25px;
}

.ce-ns-search .form-control {
  min-height: 48px;
  border-color: var(--ce-line-soft);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--ce-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
}

.ce-ns-search .btn {
  min-height: 48px;
  padding-inline: 19px;
  border-radius: 13px;
  white-space: nowrap;
}

.ce-ns-visual {
  position: relative;
  min-height: 205px;
  border: 1px solid rgba(127, 165, 255, 0.2);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 45%, rgba(20, 92, 255, 0.2), transparent 48%),
    rgba(6, 8, 14, 0.52);
}

.ce-ns-visual-cloud {
  position: absolute;
  top: 64px;
  left: 50%;
  width: 120px;
  height: 57px;
  border: 1px solid rgba(158, 184, 255, 0.55);
  border-radius: 32px;
  background: linear-gradient(145deg, #2068ff, #3730a8);
  box-shadow: 0 18px 36px rgba(20, 92, 255, 0.28);
  transform: translateX(-50%);
}

.ce-ns-visual-cloud::before,
.ce-ns-visual-cloud::after {
  position: absolute;
  border: 1px solid rgba(158, 184, 255, 0.55);
  border-bottom: 0;
  background: linear-gradient(145deg, #2068ff, #3730a8);
  content: "";
}

.ce-ns-visual-cloud::before {
  top: -28px;
  left: 21px;
  width: 51px;
  height: 51px;
  border-radius: 50% 50% 0 0;
}

.ce-ns-visual-cloud::after {
  top: -17px;
  right: 14px;
  width: 39px;
  height: 39px;
  border-radius: 50% 50% 0 0;
}

.ce-ns-node {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 48px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(127, 165, 255, 0.34);
  border-radius: 10px;
  background: #171922;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.36);
  color: #c7d4ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-style: normal;
  font-weight: 760;
}

.ce-ns-node--one { top: 22px; right: 22px; }
.ce-ns-node--two { right: 28px; bottom: 35px; }
.ce-ns-node--three { bottom: 29px; left: 24px; }

.ce-ns-link {
  position: absolute;
  z-index: 1;
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(127, 165, 255, 0.7));
  transform-origin: left;
}

.ce-ns-link--one {
  top: 75px;
  right: 55px;
  width: 79px;
  transform: rotate(-28deg);
}

.ce-ns-link--two {
  bottom: 54px;
  left: 60px;
  width: 78px;
  transform: rotate(-20deg);
}

.ce-ns-visual-caption {
  position: absolute;
  right: 18px;
  bottom: 12px;
  color: var(--ce-text-dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ce-ns-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  margin-top: 22px;
  border-radius: var(--ce-radius-lg);
}

.ce-ip-as {
  margin-top: 22px;
  padding: 20px 23px;
  border-radius: var(--ce-radius-lg);
}

.ce-ip-as-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 23px;
}

.ce-ip-as span,
.ce-ip-as strong {
  display: block;
}

.ce-ip-as span {
  margin-bottom: 6px;
  color: var(--ce-text-dim);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.ce-ip-as strong {
  overflow-wrap: anywhere;
  font-size: 17px;
}

.ce-ip-as-note {
  margin: 12px 0 0;
  color: var(--ce-text-dim);
  font-size: 13px;
}

@media (max-width: 767.98px) {
  .ce-ip-as-grid {
    grid-template-columns: 1fr;
  }
}

.ce-ns-overview > div {
  min-width: 0;
  padding: 20px 23px;
  border-right: 1px solid var(--ce-line-soft);
}

.ce-ns-overview > div:last-child { border-right: 0; }

.ce-ns-overview span,
.ce-ns-overview strong {
  display: block;
}

.ce-ns-overview span {
  margin-bottom: 6px;
  color: var(--ce-text-dim);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.ce-ns-overview strong {
  overflow: hidden;
  color: var(--ce-text);
  font-size: 21px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ce-ns-results,
.ce-ns-state {
  margin-top: 22px;
  padding: 32px;
  border-radius: var(--ce-radius-lg);
}

.ce-ns-results-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.ce-ns-results-header h2,
.ce-ns-state h2 {
  font-size: clamp(29px, 3.4vw, 42px);
}

.ce-ns-result-status {
  flex: 0 0 auto;
  margin: 4px 0 0;
  padding: 7px 11px;
  border: 1px solid rgba(20, 92, 255, 0.28);
  border-radius: 999px;
  background: var(--ce-accent-soft);
  color: #b9cbff;
  font-size: 10px;
  font-weight: 700;
}

.ce-ns-result-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.ce-ns-refresh-button {
  min-height: 36px;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.ce-ns-refresh-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.ce-ns-cache-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -5px 0 20px;
}

.ce-ns-cache-meta > span {
  padding: 7px 10px;
  border: 1px solid var(--ce-line-subtle);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--ce-text-dim);
  font-size: 10px;
}

.ce-ns-cache-meta strong {
  color: var(--ce-text-muted);
  font-weight: 700;
}

.ce-ns-cache-state {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}

.ce-ns-cache-state .ce-ns-refresh-button {
  margin-top: 20px;
}

.ce-ns-cache-state-icon {
  display: flex;
  width: 82px;
  height: 82px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(127, 165, 255, 0.24);
  border-radius: 22px;
  background: rgba(20, 92, 255, 0.1);
}

.ce-ns-cache-state-icon span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: ce-ns-cache-pulse 1.2s infinite ease-in-out;
  background: var(--ce-accent-light);
}

.ce-ns-cache-state-icon span:nth-child(2) { animation-delay: 0.15s; }
.ce-ns-cache-state-icon span:nth-child(3) { animation-delay: 0.3s; }

@keyframes ce-ns-cache-pulse {
  0%,
  70%,
  100% { opacity: 0.3; transform: translateY(0); }
  35% { opacity: 1; transform: translateY(-5px); }
}

.ce-ns-progress {
  overflow: hidden;
  width: min(100%, 560px);
  height: 8px;
  margin-top: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.ce-ns-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #145cff, #7fa5ff);
  transition: width 0.35s ease;
}

.ce-ns-progress-label {
  margin: 9px 0 0;
  color: var(--ce-text-dim);
  font-size: 10px;
}

.ce-ns-cache-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding: 15px 18px;
  border: 1px solid rgba(127, 165, 255, 0.24);
  border-radius: var(--ce-radius-md);
  background: rgba(20, 92, 255, 0.085);
}

.ce-ns-cache-notice strong,
.ce-ns-cache-notice span {
  display: block;
}

.ce-ns-cache-notice strong {
  margin-bottom: 3px;
  color: var(--ce-text);
  font-size: 12px;
}

.ce-ns-cache-notice span {
  color: var(--ce-text-muted);
  font-size: 10px;
}

.ce-ns-cache-notice .ce-ns-cache-notice-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  animation: ce-ns-cache-pulse 1.2s infinite ease-in-out;
  background: var(--ce-accent-light);
  box-shadow: 0 0 18px rgba(127, 165, 255, 0.72);
}

.ce-ns-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  align-items: start;
  gap: 24px;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid var(--ce-line-subtle);
  border-radius: var(--ce-radius-md);
  background: rgba(255, 255, 255, 0.025);
}

.ce-ns-controls .form-label {
  margin-bottom: 8px;
  color: var(--ce-text-muted);
  font-size: 11px;
  font-weight: 700;
}

.ce-ns-control {
  min-width: 0;
}

.ce-ns-domain-filter-field {
  position: relative;
}

.ce-ns-domain-filter .form-control {
  min-height: 45px;
  padding-right: 42px;
  border-color: var(--ce-line-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--ce-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.ce-ns-domain-filter .form-control:focus {
  border-color: rgba(127, 165, 255, 0.62);
  box-shadow: 0 0 0 3px rgba(20, 92, 255, 0.13);
}

.ce-ns-domain-filter .form-control::-webkit-search-cancel-button {
  appearance: none;
}

.ce-ns-domain-filter-clear {
  position: absolute;
  top: 50%;
  right: 9px;
  display: grid;
  width: 27px;
  height: 27px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: rgba(127, 165, 255, 0.1);
  color: var(--ce-text-muted);
  font-size: 20px;
  line-height: 1;
  transform: translateY(-50%);
}

.ce-ns-domain-filter-clear:hover,
.ce-ns-domain-filter-clear:focus-visible {
  background: rgba(127, 165, 255, 0.2);
  color: var(--ce-text);
}

.ce-ns-domain-filter-clear[hidden] {
  display: none;
}

.ce-ns-domain-filter-hint {
  display: block;
  min-height: 16px;
  margin-top: 7px;
  color: var(--ce-text-dim);
  font-size: 9px;
}

.ce-ns-controls > p {
  grid-column: 1 / -1;
  margin: -10px 0 0;
  color: var(--ce-text-dim);
  font-size: 11px;
  line-height: 1.55;
}

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

.ce-ns-domain-links {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ce-ns-domain-links > a:first-child {
  color: var(--ce-text);
  font-weight: 650;
}

.ce-ns-domain-links > a:last-child {
  color: var(--ce-accent-light);
  font-size: 13px;
  text-decoration: none;
}

.ce-ns-state code {
  color: #c7d4ff;
}

@media (max-width: 767.98px) {
  .ce-ns-hero {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 26px 23px;
  }

  .ce-ns-visual { min-height: 180px; }

  .ce-ns-search {
    align-items: stretch;
    flex-direction: column;
  }

  .ce-ns-overview { grid-template-columns: 1fr; }

  .ce-ns-overview > div {
    border-right: 0;
    border-bottom: 1px solid var(--ce-line-soft);
  }

  .ce-ns-overview > div:last-child { border-bottom: 0; }

  .ce-ns-results,
  .ce-ns-state { padding: 24px 21px; }

  .ce-ns-results-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .ce-ns-result-actions {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .ce-ns-cache-state {
    grid-template-columns: 1fr;
  }

  .ce-ns-cache-state-icon {
    width: 68px;
    height: 68px;
  }

  .ce-ns-controls {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 14px;
  }

  .ce-ns-controls > p {
    grid-column: auto;
    margin-top: 0;
  }
}
