:root {
  --bg: #fbfcff;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --ink: #0f172a;
  --text: #172033;
  --muted: #64748b;
  --line: #dfe7f2;
  --line-strong: #cbd5e1;
  --green: #17c964;
  --green-dark: #078b45;
  --blue: #2563eb;
  --red: #dc2626;
  --amber: #f59e0b;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.1);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  letter-spacing: 0;
}

body.search-page,
body.static-page {
  background:
    linear-gradient(132deg, rgba(203, 246, 209, 0.78) 0%, rgba(237, 249, 235, 0.62) 17%, rgba(255, 255, 255, 0.92) 39%, rgba(248, 250, 252, 1) 100%);
  background-attachment: fixed;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 50;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 3vw, 48px);
  width: min(1280px, calc(100% - 40px));
  min-height: 58px;
  margin: 24px auto 0;
  padding: 5px 6px 5px 18px;
  border: 1px solid rgba(226, 232, 240, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 9px;
  min-height: 44px;
  color: #111827;
  font-size: 1rem;
  font-weight: 680;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  filter: drop-shadow(0 4px 10px rgba(23, 201, 100, 0.13));
}

.brand-wordmark {
  display: inline-block;
  color: #111827;
  font-weight: 690;
}

.toplinks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.4vw, 34px);
  min-width: 0;
}

.toplinks a,
.nav-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 690;
  text-decoration: none;
  white-space: nowrap;
}

.toplinks a {
  padding: 0 4px;
  color: #20242c;
}

.toplinks a:hover,
.toplinks a:focus-visible {
  color: #020617;
}

.nav-contact {
  min-width: 132px;
  padding: 0 22px;
  background: #202020;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.nav-contact:hover,
.nav-contact:focus-visible {
  background: #000;
  color: #fff;
}

main {
  padding-top: clamp(42px, 8vh, 92px);
}

.home-shell {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: min(820px, calc(100% - 32px));
  min-height: calc(100vh - 180px);
  margin: 0 auto;
  text-align: center;
  transition: min-height 0.22s ease, padding 0.22s ease;
}

.search-logo {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 22px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.065);
}

.search-logo img {
  width: 52px;
  height: 52px;
}

h1 {
  margin: 0;
  color: #07111f;
  font-size: clamp(3rem, 6.6vw, 5.35rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.tagline {
  max-width: 660px;
  margin: 16px auto 0;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1;
}

.speed-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(23, 201, 100, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 12px 30px rgba(23, 201, 100, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
}

.speed-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(23, 201, 100, 0.13);
}

.search-card {
  width: 100%;
  margin-top: 30px;
}

.search-box {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 66px;
  padding: 7px;
  border: 1px solid #d7e0ec;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.09);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.search-box:focus-within {
  border-color: #b9c6d7;
  box-shadow: 0 20px 52px rgba(15, 23, 42, 0.13);
}

.search-box .form-control {
  width: 100% !important;
  min-width: 0;
  min-height: 50px;
  border: 0;
  border-radius: 999px !important;
  background: transparent;
  color: var(--ink);
  padding: 0 20px;
  font-size: 1.05rem;
  font-weight: 630;
}

.search-box .form-control:focus {
  border: 0 !important;
  box-shadow: none !important;
}

.search-box .form-control::placeholder {
  color: #8a95a7;
}

.search-button {
  min-width: 124px;
  min-height: 50px;
  border: 0;
  border-radius: 999px !important;
  background: #111827;
  color: #fff;
  font-weight: 760;
}

.search-button:hover,
.search-button:focus-visible {
  background: #000;
  color: #fff;
}

.input-group.searching {
  animation: searchPulse 1s ease-in-out infinite;
}

@keyframes searchPulse {
  50% {
    border-color: rgba(23, 201, 100, 0.62);
  }
}

.loading-state:not(.d-none) {
  display: inline-flex !important;
}

.loading-state {
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--green-dark);
  font-size: 0.94rem;
  font-weight: 650;
}

.loading-state .spinner-border {
  width: 1rem;
  height: 1rem;
  border-color: rgba(7, 139, 69, 0.24);
  border-top-color: var(--green-dark);
}

.quick-examples {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.quick-examples button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #334155;
  font-weight: 650;
}

.quick-examples button:hover {
  border-color: var(--line-strong);
  background: #fff;
}

.search-page.has-results main,
.search-page:has(#table-container:not(.d-none)) main {
  padding-top: 22px;
}

.search-page.has-results .home-shell,
.search-page:has(#table-container:not(.d-none)) .home-shell {
  min-height: auto;
  padding: 0 0 16px;
}

.search-page.has-results .search-logo,
.search-page:has(#table-container:not(.d-none)) .search-logo,
.search-page.has-results h1,
.search-page:has(#table-container:not(.d-none)) h1,
.search-page.has-results .tagline,
.search-page:has(#table-container:not(.d-none)) .tagline,
.search-page.has-results .quick-examples,
.search-page:has(#table-container:not(.d-none)) .quick-examples {
  display: none;
}

.search-page.has-results .search-card,
.search-page:has(#table-container:not(.d-none)) .search-card {
  margin-top: 0;
}

.results-shell {
  width: min(1680px, calc(100% - 48px));
  margin: 0 auto 44px;
}

.result-count {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  margin-bottom: 12px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 760;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.055);
}

.result-count strong {
  color: var(--ink);
  font-size: 1.2rem;
}

.table-wrap,
#subdomain-table_wrapper {
  border: 1px solid #d9e3f0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.table-wrap {
  overflow: visible;
}

#subdomain-table_wrapper {
  padding: 18px;
  overflow: hidden;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.table-toolbar__left,
.table-toolbar__right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.table-toolbar__right {
  justify-content: flex-end;
  margin-left: auto;
}

.table-toolbar .dataTables_length,
.table-toolbar .dataTables_filter,
.table-toolbar .dt-length,
.table-toolbar .dt-search {
  float: none !important;
  margin: 0 !important;
}

.table-toolbar .dataTables_length label,
.table-toolbar .dataTables_filter label,
.table-toolbar .dt-length label,
.table-toolbar .dt-search label,
.dataTables_info,
.dt-info {
  color: #475569;
  font-size: 0.9rem;
  font-weight: 640;
}

.table-toolbar .dataTables_length label,
.table-toolbar .dataTables_filter label,
.table-toolbar .dt-length label,
.table-toolbar .dt-search label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  white-space: nowrap;
}

.dataTables_filter input,
.dataTables_length select,
.dt-search input,
.dt-length select {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 6px 12px;
}

.table-toolbar .dataTables_filter input,
.table-toolbar .dt-search input {
  width: min(260px, 34vw);
}

.dataTables_wrapper .dt-buttons {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 !important;
  overflow: visible;
}

.dt-button,
.dt-button.buttons-collection,
button.dt-button,
div.dt-button,
a.dt-button,
.dataTables_wrapper .dt-buttons .btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid #dbe5f0 !important;
  border-radius: 10px !important;
  background: #111827 !important;
  color: #fff !important;
  padding: 0 11px !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

.dt-button:hover,
.dt-button:focus {
  background: #000 !important;
  color: #fff !important;
}

.table-toolbar > .table-toolbar__left > .dt-buttons > .dt-button:not(.buttons-collection),
.table-toolbar > .table-toolbar__left > .dt-buttons > .btn-primary {
  background: #f8fafc !important;
  color: #334155 !important;
  border-color: #dbe5f0 !important;
}

.table-toolbar > .table-toolbar__left > .dt-buttons > .btn-dark,
.table-toolbar > .table-toolbar__left > .dt-buttons > .buttons-collection {
  background: #111827 !important;
  color: #fff !important;
  border-color: #111827 !important;
}

.dt-button-collection {
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: var(--shadow) !important;
  overflow: hidden;
}

.dt-button-collection .dt-button {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: var(--ink) !important;
  text-align: left !important;
}

#subdomain-table_wrapper .dt-scroll,
#subdomain-table_wrapper .dataTables_scroll {
  width: 100%;
}

#subdomain-table_wrapper .dt-scroll-head,
#subdomain-table_wrapper .dt-scroll-body,
#subdomain-table_wrapper .dataTables_scrollHead,
#subdomain-table_wrapper .dataTables_scrollBody {
  border-color: #e5ebf3 !important;
}

#subdomain-table_wrapper .dt-scroll-body,
#subdomain-table_wrapper .dataTables_scrollBody {
  overflow-x: auto !important;
  scrollbar-color: #cbd5e1 transparent;
}

#subdomain-table_wrapper .dt-scroll-headInner,
#subdomain-table_wrapper .dt-scroll-headInner table,
#subdomain-table_wrapper .dt-scroll-body table,
#subdomain-table_wrapper .dataTables_scrollHeadInner,
#subdomain-table_wrapper .dataTables_scrollHeadInner table,
#subdomain-table_wrapper .dataTables_scrollBody table,
#subdomain-table {
  min-width: 1460px;
}

#subdomain-table {
  width: 100% !important;
  margin: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  table-layout: fixed;
  color: #0f172a;
  font-size: 0.9rem;
}

#subdomain-table th,
#subdomain-table td {
  height: 58px;
  border: 0 !important;
  border-bottom: 1px solid #e8eef6 !important;
  padding: 11px 10px !important;
  vertical-align: middle;
}

#subdomain-table thead th,
table.dataTable thead th,
table.dataTable thead tr {
  background: #f7f9fc !important;
  color: #172033 !important;
  border-bottom: 1px solid #dfe7f2 !important;
  font-size: 0.75rem;
  font-weight: 820;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

#subdomain-table tbody tr:nth-child(odd) td {
  background-color: #ffffff !important;
  box-shadow: none !important;
}

#subdomain-table tbody tr:nth-child(even) td {
  background-color: #f8fafc !important;
  box-shadow: none !important;
}

#subdomain-table tbody tr:hover td {
  background-color: #f2f7ff !important;
}

#subdomain-table th:first-child,
#subdomain-table td:first-child {
  width: 56px !important;
  color: #64748b;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

#subdomain-table th:nth-child(2),
#subdomain-table td:nth-child(2) {
  width: 250px !important;
}

#subdomain-table th:nth-child(3),
#subdomain-table td:nth-child(3) {
  width: 286px !important;
}

#subdomain-table th:nth-child(4),
#subdomain-table td:nth-child(4) {
  width: 76px !important;
}

#subdomain-table th:nth-child(5),
#subdomain-table td:nth-child(5) {
  width: 220px !important;
}

#subdomain-table th:nth-child(6),
#subdomain-table td:nth-child(6) {
  width: 82px !important;
}

#subdomain-table th:nth-child(7),
#subdomain-table td:nth-child(7) {
  width: 108px !important;
}

#subdomain-table th:nth-child(8),
#subdomain-table td:nth-child(8) {
  width: 102px !important;
}

#subdomain-table th:nth-child(9),
#subdomain-table td:nth-child(9) {
  width: 100px !important;
}

#subdomain-table th:nth-child(10),
#subdomain-table th:nth-child(11),
#subdomain-table td:nth-child(10),
#subdomain-table td:nth-child(11) {
  width: 80px !important;
}

#subdomain-table td:nth-child(2),
#subdomain-table td:nth-child(3) {
  color: #07111f;
  font-weight: 740;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

#subdomain-table td[data-copyable="true"] {
  cursor: copy;
}

#subdomain-table td.is-copied-cell {
  background-color: #f0fdf4 !important;
  box-shadow: inset 0 0 0 1px rgba(23, 201, 100, 0.34) !important;
}

#subdomain-table td:nth-child(n+4) {
  text-align: center;
}

#subdomain-table td {
  overflow: hidden;
}

#subdomain-table .loader,
.loader,
.spinner {
  width: 16px;
  height: 16px;
  margin: 0 auto;
  border: 3px solid rgba(15, 23, 42, 0.12);
  border-top-color: var(--green-dark);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

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

div.dataTables_scrollBody table thead,
div.dataTables_scrollBody table thead tr,
div.dataTables_scrollBody table thead th,
div.dt-scroll-body table thead,
div.dt-scroll-body table thead tr,
div.dt-scroll-body table thead th {
  height: 0 !important;
  max-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border: 0 !important;
  line-height: 0 !important;
  visibility: collapse !important;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 22px;
  min-width: 38px;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 780;
  line-height: 1;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ip-cell,
.asn-cell {
  min-width: 0;
}

.asn-cell .badge {
  display: inline-block;
  max-width: 100%;
  text-align: left;
  vertical-align: middle;
}

.ip-cell .badge {
  max-width: 100%;
}

.badge-success {
  border-color: #bbf7d0 !important;
  background-color: #dcfce7 !important;
  color: #166534 !important;
}

.badge-inactive,
.badge-error {
  border-color: #fecaca !important;
  background-color: #fee2e2 !important;
  color: #991b1b !important;
}

.badge-warning {
  border-color: #fde68a !important;
  background-color: #fef3c7 !important;
  color: #92400e !important;
}

.badge-info {
  border-color: #bfdbfe !important;
  background-color: #dbeafe !important;
  color: #1d4ed8 !important;
}

.badge-dark {
  border-color: #dbe3ee !important;
  background-color: #eef2f7 !important;
  color: #475569 !important;
}

.cloudflare-cell .badge[style] {
  border-color: #fed7aa !important;
  background: #ffedd5 !important;
  color: #9a3412 !important;
}

.akamai-cell .badge[style] {
  border-color: #bae6fd !important;
  background: #e0f2fe !important;
  color: #075985 !important;
}

.country-cell .badge[style] {
  min-width: 38px;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.58) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 1px 3px rgba(15, 23, 42, 0.08);
  font-size: 0.9rem;
}

.country-cell .country-flag-badge[style] {
  gap: 5px;
  min-width: 64px;
  border-color: #dbe3ee !important;
  background: #fff !important;
  color: #172033 !important;
  text-shadow: none !important;
  font-size: 0.78rem;
}

.dns-btn,
.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #172033;
  font-size: 0.8rem;
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 -1px 0 rgba(15, 23, 42, 0.04);
}

.dns-btn {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: var(--green-dark);
}

.dns-btn:hover,
.link-btn:hover {
  border-color: var(--line-strong);
}

.dataTables_info,
.dt-info {
  padding-top: 12px !important;
}

.dataTables_paginate,
.dt-paging {
  display: flex !important;
  justify-content: flex-end;
  padding-top: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.dataTables_paginate::-webkit-scrollbar,
.dt-paging::-webkit-scrollbar {
  display: none;
}

.pagination,
.dataTables_paginate .pagination,
.dt-paging nav,
.dt-paging .pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.page-item .page-link,
.page-link,
.dataTables_paginate .paginate_button,
.dt-paging .dt-paging-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 44px !important;
  min-width: 44px !important;
  height: 40px !important;
  padding: 0 !important;
  border: 1px solid var(--line) !important;
  border-radius: 11px !important;
  background: #fff !important;
  color: var(--ink) !important;
  font-size: 0.92rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: center;
}

.page-item.active .page-link,
.page-link:hover {
  background: #111827 !important;
  color: #fff !important;
}

.dataTables_paginate .ellipsis,
.dt-paging .ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 40px;
  color: #64748b;
}

.footer-note {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 18px;
  color: #8a94a6;
  font-size: 0.86rem;
  text-align: center;
}

.footer-note a {
  color: #64748b;
  font-weight: 700;
  text-underline-offset: 3px;
}

.footer-note a:hover {
  color: #334155;
}

.search-page.has-results .footer-note,
.search-page:has(#table-container:not(.d-none)) .footer-note {
  display: none;
}

body.modal-active {
  overflow: hidden;
}

.dns-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  padding: clamp(12px, 3vw, 28px);
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(10px);
  overflow: auto;
}

.dns-modal-content {
  display: flex;
  flex-direction: column;
  width: min(1120px, 100%);
  max-height: calc(100vh - 64px);
  margin: 4vh auto;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 32px 90px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}

.dns-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex: 0 0 auto;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.dns-modal-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 790;
}

.dns-modal-header .subdomain-name {
  max-width: min(74vw, 820px);
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 660;
  word-break: break-all;
}

.dns-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1;
}

.dns-close:hover {
  background: #111827;
  color: #fff;
}

.dns-modal-body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 24px;
}

.dns-loading,
.dns-no-records {
  display: grid;
  place-items: center;
  gap: 14px;
  min-height: 180px;
  color: var(--muted);
  text-align: center;
}

.dns-summary {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
}

.dns-table-container,
.dns-records-table-wrapper {
  overflow-x: auto;
}

.dns-records-table {
  min-width: 920px;
  table-layout: fixed;
}

.dns-records-table th {
  vertical-align: top;
}

/* Center body cells vertically so rows stay balanced when one column (e.g. the
   SOA Details badges) wraps to two lines and makes the row taller. */
.dns-records-table td {
  vertical-align: middle;
}

.dns-records-table thead th {
  background: #f8fafc !important;
  color: #334155 !important;
}

.dns-records-table th:nth-child(1),
.dns-records-table td:nth-child(1) {
  width: 112px;
}

.dns-records-table th:nth-child(2),
.dns-records-table td:nth-child(2) {
  width: 410px;
}

.dns-records-table th:nth-child(3),
.dns-records-table td:nth-child(3) {
  width: 110px;
}

.dns-records-table th:nth-child(4),
.dns-records-table td:nth-child(4) {
  width: 210px;
}

.dns-records-table th:nth-child(5),
.dns-records-table td:nth-child(5) {
  width: 120px;
}

.dns-value-code {
  display: inline-block;
  max-width: 100%;
  padding: 4px 7px;
  border-radius: 7px;
  background: #f1f5f9;
  color: #172033;
  white-space: normal;
  overflow-wrap: anywhere;
}

.dns-summary .badge,
.dns-records-table .badge {
  border: 1px solid transparent;
}

.dns-modal .badge.bg-success {
  border-color: #bbf7d0 !important;
  background-color: #dcfce7 !important;
  color: #166534 !important;
}

.dns-modal .badge.bg-primary,
.dns-modal .badge.bg-info {
  border-color: #bfdbfe !important;
  background-color: #dbeafe !important;
  color: #1d4ed8 !important;
}

.dns-modal .badge.bg-warning {
  border-color: #fde68a !important;
  background-color: #fef3c7 !important;
  color: #92400e !important;
}

.dns-modal .badge.bg-danger {
  border-color: #fecaca !important;
  background-color: #fee2e2 !important;
  color: #991b1b !important;
}

.dns-modal .badge.bg-secondary,
.dns-modal .badge.bg-dark,
.dns-modal .badge.bg-light {
  border-color: #dbe3ee !important;
  background-color: #eef2f7 !important;
  color: #475569 !important;
}

.copy-dns-btn,
.full-txt-record .btn {
  border-radius: 999px !important;
}

.copy-feedback {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 32px);
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.97);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.32);
  transform: translateX(-50%);
  pointer-events: none;
  animation: copyToastIn 0.26s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.copy-feedback::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(23, 201, 100, 0.22);
}

.copy-feedback--error::before {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.18);
}

.copy-feedback.is-leaving {
  animation: copyToastOut 0.2s ease-in both;
}

@keyframes copyToastIn {
  from {
    opacity: 0;
    transform: translate(-50%, 16px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes copyToastOut {
  from {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  to {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
}

.swal2-popup.sdf-swal {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  color: var(--ink);
  font-family: var(--font);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.22);
}

.swal2-popup.sdf-swal .swal2-title {
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 760;
}

.swal2-popup.sdf-swal .swal2-html-container {
  color: var(--muted);
}

.swal2-popup.sdf-toast {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px;
  width: auto !important;
  min-width: 0 !important;
  max-width: min(440px, calc(100vw - 24px)) !important;
  min-height: 44px;
  padding: 0 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 999px !important;
  background: rgba(17, 24, 39, 0.97) !important;
  color: #fff !important;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.32) !important;
  backdrop-filter: blur(16px);
}

.swal2-popup.sdf-toast::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(23, 201, 100, 0.22);
}

.swal2-popup.sdf-toast .swal2-title {
  margin: 0 !important;
  padding: 0 !important;
  color: #fff !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

.swal2-popup.sdf-toast .swal2-html-container,
.swal2-popup.sdf-toast .swal2-icon {
  display: none !important;
}

.static-page main,
.static-page .container.my-5 {
  width: min(900px, calc(100% - 32px));
  max-width: 900px !important;
  margin: 42px auto 64px !important;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: var(--shadow);
}

.static-page h1 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.04;
}

.static-page h2,
.static-page h3 {
  margin-top: 30px;
  color: var(--ink);
  font-weight: 760;
  letter-spacing: 0;
}

.static-page p,
.static-page li {
  color: #172033;
  font-size: 1.02rem;
  line-height: 1.72;
}

.static-page a:not(.brand):not(.toplinks a):not(.nav-contact) {
  color: #0f63d7;
}

.static-page code {
  border-radius: 6px;
  background: #eef4fb;
  color: #c0265a;
  padding: 0.12rem 0.32rem;
}

@media (max-width: 980px) {
  .topbar {
    width: calc(100% - 24px);
    gap: 16px;
  }

  .toplinks {
    gap: 14px;
  }

  .toplinks a {
    font-size: 0.84rem;
  }

  .nav-contact {
    min-width: 112px;
    padding: 0 18px;
  }

  .table-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .table-toolbar__left,
  .table-toolbar__right {
    width: 100%;
    justify-content: flex-start;
  }

  .table-toolbar .dataTables_filter,
  .table-toolbar .dt-search,
  .table-toolbar .dataTables_filter label,
  .table-toolbar .dt-search label,
  .table-toolbar .dataTables_filter input,
  .table-toolbar .dt-search input {
    width: 100%;
  }
}

@media (max-width: 760px) {
  body.search-page,
  body.static-page {
    background:
      linear-gradient(132deg, rgba(218, 248, 222, 0.85) 0%, rgba(255, 255, 255, 0.96) 35%, #fbfcff 100%);
  }

  .topbar {
    position: static;
    grid-template-areas:
      "brand contact"
      "links links";
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 12px;
    width: calc(100% - 20px);
    min-height: auto;
    margin-top: 10px;
    padding: 8px 10px 10px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
  }

  .brand {
    grid-area: brand;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 34px;
    font-size: 0.96rem;
  }

  .brand-wordmark {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-contact {
    grid-area: contact;
    justify-self: end;
    min-width: 92px;
    min-height: 36px;
    padding: 0 14px;
    font-size: 0.84rem;
  }

  .toplinks {
    grid-area: links;
    grid-column: 1 / -1;
    justify-content: space-between;
    width: 100%;
    overflow-x: auto;
    padding: 0;
    scrollbar-width: none;
    gap: 8px;
  }

  .toplinks::-webkit-scrollbar {
    display: none;
  }

  .toplinks a {
    flex: 0 0 auto;
    min-height: 30px;
    padding: 0 2px;
    font-size: 0.78rem;
  }

  main {
    padding-top: 22px;
  }

  .home-shell {
    width: min(100% - 24px, 560px);
    min-height: calc(100vh - 116px);
  }

  h1 {
    width: 100%;
    font-size: clamp(2.55rem, 11vw, 3.18rem);
    line-height: 1.03;
  }

  .tagline {
    margin-top: 12px;
  }

  .speed-pill {
    min-height: 32px;
    padding: 0 13px;
    font-size: 0.84rem;
  }

  .search-card {
    margin-top: 28px;
  }

  .search-box {
    grid-template-columns: minmax(0, 1fr) 92px;
    min-height: 60px;
    border-radius: 999px;
    padding: 6px;
  }

  .search-box .form-control {
    min-height: 48px;
    padding: 0 14px;
    text-align: left;
    font-size: 0.98rem;
  }

  .search-button {
    width: auto;
    min-width: 92px;
    min-height: 48px;
    font-size: 0.92rem;
  }

  .quick-examples {
    gap: 8px;
    margin-top: 16px;
    font-size: 0.86rem;
  }

  .quick-examples button {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.86rem;
  }

  .results-shell {
    width: calc(100% - 20px);
  }

  .result-count {
    min-height: 42px;
    margin-bottom: 12px;
    padding: 0 14px;
    font-size: 0.8rem;
  }

  #subdomain-table_wrapper {
    padding: 12px;
    border-radius: 18px;
  }

  .table-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 12px;
  }

  .table-toolbar__left {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .dataTables_wrapper .dt-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }

  .dt-button,
  .dt-button.buttons-collection,
  button.dt-button,
  div.dt-button,
  a.dt-button,
  .dataTables_wrapper .dt-buttons .btn {
    min-height: 38px;
    width: 100%;
    padding: 0 10px !important;
  }

  .dataTables_paginate,
  .dt-paging {
    justify-content: center;
  }

  .dns-modal {
    padding: 10px;
  }

  .dns-modal-content {
    max-height: calc(100vh - 24px);
    margin: 2vh auto;
  }

  .dns-modal-header,
  .dns-modal-body {
    padding: 16px;
  }

  .static-page .container.my-5 {
    width: calc(100% - 20px);
    margin-top: 26px !important;
    padding: 24px;
  }
}
