/* WHOIS Lookup — extends domain-health-checker + mirrors DNS Lookup patterns */

.whois-lookup-page main .container {
  max-width: 1220px;
}

.whois-lookup-page .tool-hero {
  padding: 52px 0 64px;
  border-bottom: 1px solid var(--color-border-soft);
}

.whois-lookup-page .tool-hero-grid {
  grid-template-columns: 1fr 400px;
  gap: 52px;
  align-items: center;
}

.whois-lookup-page .tool-hero h1 {
  font-size: clamp(2rem, 4.2vw, 2.875rem);
  margin-bottom: 14px;
}

.whois-lookup-page .tool-hero-subtitle {
  font-size: 1.0625rem;
  line-height: 1.6;
  margin-bottom: 22px;
  max-width: 540px;
}

.whois-section-band {
  padding: 56px 0 60px;
}

.whois-section-band--soft {
  background: var(--color-bg-soft);
}

[data-theme="dark"] .whois-section-band--soft {
  background: rgba(148, 163, 184, 0.04);
}

.whois-lookup-page .whois-section-band .section-header,
.whois-lookup-page .whois-section-band .section-header--compact,
.whois-lookup-page .whois-faq-section .section-header {
  text-align: center;
  margin: 0 auto 36px;
  max-width: 720px;
}

.whois-lookup-page .tool-faq {
  padding: 56px 0 64px;
}

.tool-page--checking .whois-landing-section,
.tool-page--has-results .whois-landing-section {
  display: none;
}

.tool-page--checking .whois-hero-preview,
.tool-page--has-results .whois-hero-preview {
  display: none;
}

/* Compact centered hero when checking or showing results */
.whois-lookup-page.tool-page--checking .tool-hero-grid,
.whois-lookup-page.tool-page--has-results .tool-hero-grid {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin: 0 auto;
  gap: 0;
}

.whois-lookup-page.tool-page--checking .tool-hero,
.whois-lookup-page.tool-page--has-results .tool-hero {
  border-bottom: none;
}

.whois-lookup-page.tool-page--checking .tool-hero h1,
.whois-lookup-page.tool-page--has-results .tool-hero h1,
.whois-lookup-page.tool-page--checking .tool-hero-subtitle,
.whois-lookup-page.tool-page--has-results .tool-hero-subtitle {
  text-align: center;
}

.whois-lookup-page.tool-page--checking .tool-hero-subtitle,
.whois-lookup-page.tool-page--has-results .tool-hero-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.whois-lookup-page.tool-page--checking .tool-hero-trust,
.whois-lookup-page.tool-page--has-results .tool-hero-trust {
  text-align: center;
}

.whois-lookup-page.tool-page--checking .tool-search,
.whois-lookup-page.tool-page--has-results .tool-search {
  margin-left: auto;
  margin-right: auto;
  max-width: 600px;
}

.whois-lookup-page.tool-page--has-results .hero-badge,
.whois-lookup-page.tool-page--has-results .tool-hero-subtitle,
.whois-lookup-page.tool-page--has-results .tool-hero-trust {
  display: none;
}

.whois-lookup-page.tool-page--has-results #tool-heading {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
}

.whois-lookup-page .tool-results.is-visible {
  padding-top: 0;
}

.whois-lookup-report.report-audit {
  padding-top: 0;
}

/* Preview card */
.whois-preview-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 0 0 18px;
  box-shadow: 0 16px 40px rgba(7, 26, 51, 0.1);
  overflow: hidden;
}

.whois-preview-browser {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border-soft);
}

.whois-preview-browser span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
}

.whois-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
}

.whois-preview-label {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2563EB;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 4px 9px;
  border-radius: 100px;
}

.whois-preview-domain {
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.whois-preview-rows {
  list-style: none;
  margin: 0;
  padding: 0 18px;
}

.whois-preview-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--color-border-soft);
  font-size: 0.8125rem;
}

.whois-preview-row-label {
  color: var(--color-muted);
  font-weight: 600;
}

.whois-preview-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 0;
}

.whois-preview-badge--registered {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  color: var(--color-success);
  background: rgba(22, 199, 132, 0.1);
  border: 1px solid rgba(22, 199, 132, 0.22);
}

.whois-preview-sample-note {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.whois-preview-disclaimer {
  margin: 10px 18px 0;
  font-size: 0.75rem;
  color: var(--color-muted);
  text-align: center;
}

/* Feature grid */
.whois-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.whois-feature-card {
  padding: 22px 20px;
  border: 1px solid var(--color-border-soft);
  border-radius: 16px;
  background: var(--color-card);
}

.whois-feature-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
}

.whois-feature-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.55;
}

.whois-ihoster-card {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(22, 199, 132, 0.04) 100%);
  border-color: rgba(59, 130, 246, 0.18);
  padding: 28px 32px;
}

/* Results */
.whois-lookup-report {
  padding: 28px 0 0;
}

.whois-lookup-report #whois-summary,
.whois-lookup-report #whois-notices,
.whois-lookup-report #whois-profile,
.whois-lookup-report #whois-raw,
.whois-lookup-report #whois-result-help {
  scroll-margin-top: calc(72px + 64px + 28px);
}

.whois-dashboard--premium {
  padding: 22px 24px 0;
}

.whois-dashboard-body {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) minmax(260px, 288px);
  gap: 20px 24px;
  align-items: start;
  padding-bottom: 16px;
}

.whois-report-badge {
  display: inline-flex;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #2563EB;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.22);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}

.whois-summary-text {
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: 1.55;
  margin: 0 0 10px;
}

.whois-demo-notice {
  font-size: 0.8125rem;
  color: var(--color-warning);
  margin: 0;
}

.whois-dashboard-meta-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  text-align: right;
  width: 100%;
}

.whois-checked-at {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 0.75rem;
  color: var(--color-muted);
  line-height: 1.35;
  max-width: 100%;
}

.whois-checked-at-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
}

.whois-checked-at-value {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}

.whois-live-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 2px;
}

.whois-dashboard-col--meta .whois-action-group {
  margin-top: 14px;
  width: 100%;
}

.whois-live-badge--live {
  color: var(--color-success);
  background: rgba(22, 199, 132, 0.1);
  border: 1px solid rgba(22, 199, 132, 0.2);
}

.whois-live-badge--demo {
  color: var(--color-warning);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.22);
}

.whois-dashboard-stats {
  display: none;
}

/* Compact stats strip */
.whois-compact-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 0 18px;
  border-top: 1px solid var(--color-border-soft);
}

.whois-stat-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border-soft);
}

.whois-stat-chip-value {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.whois-stat-chip-label {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
}

.whois-stat-chip--warn .whois-stat-chip-value {
  color: var(--color-warning);
}

.whois-stat-chip--notice .whois-stat-chip-value {
  color: #2563EB;
}

.whois-stat-chip--expired .whois-stat-chip-value {
  color: var(--color-error);
}

.whois-stat-chip--neutral .whois-stat-chip-value {
  color: var(--color-muted);
}

.whois-key-fact--entity {
  min-width: 0;
}

.whois-key-fact-value--entity {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.whois-key-fact-value--muted {
  color: var(--color-muted);
  font-weight: 600;
}

.whois-profile-value--truncate {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.whois-domain-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 8px;
}

.whois-domain-head .audit-domain-name {
  margin-bottom: 0;
}

.whois-expiry-status-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.whois-expiry-status-badge--safe {
  color: var(--color-success);
  background: rgba(22, 199, 132, 0.12);
  border: 1px solid rgba(22, 199, 132, 0.22);
}

.whois-expiry-status-badge--notice {
  color: #2563EB;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.22);
}

.whois-expiry-status-badge--warn {
  color: var(--color-warning);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.22);
}

.whois-expiry-status-badge--expired {
  color: var(--color-error);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.22);
}

/* Key facts inline under summary */
.whois-key-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 16px;
  margin: 12px 0 0;
  padding: 12px 14px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border-soft);
  border-radius: 12px;
}

.whois-key-fact {
  margin: 0;
  min-width: 0;
}

.whois-key-fact dt {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  margin: 0 0 3px;
}

.whois-key-fact dd {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.whois-summary-ok {
  margin: 10px 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-success);
}

.whois-report-nav {
  margin: 12px 0 28px;
}

/* Status badge */
.whois-status-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.whois-status-badge {
  position: relative;
  width: 88px;
  height: 88px;
}

.whois-status-badge-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(22, 199, 132, 0.22);
  background: radial-gradient(circle at 30% 25%, rgba(22, 199, 132, 0.12) 0%, transparent 70%);
}

.whois-status-badge-core {
  position: absolute;
  inset: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 6px 16px rgba(22, 199, 132, 0.3);
}

.whois-status-visual--registered .whois-status-badge-core {
  background: linear-gradient(145deg, #22D492, #12A86B);
}

.whois-status-visual--registered .whois-status-label {
  color: var(--color-success);
}

.whois-status-visual--expiring .whois-status-badge-ring {
  border-color: rgba(245, 158, 11, 0.32);
}

.whois-status-visual--expiring .whois-status-badge-core {
  background: linear-gradient(145deg, #FBBF24, #D97706);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.28);
}

.whois-status-visual--expiring .whois-status-label {
  color: var(--color-warning);
}

.whois-status-visual--expired .whois-status-badge-ring,
.whois-status-visual--not_found .whois-status-badge-ring {
  border-color: rgba(239, 68, 68, 0.28);
}

.whois-status-visual--expired .whois-status-badge-core,
.whois-status-visual--not_found .whois-status-badge-core {
  background: linear-gradient(145deg, #F87171, #DC2626);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.25);
}

.whois-status-visual--expired .whois-status-label,
.whois-status-visual--not_found .whois-status-label {
  color: var(--color-error);
}

.whois-status-visual--unknown .whois-status-badge-core {
  background: linear-gradient(145deg, #94A3B8, #64748B);
}

.whois-status-label {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-muted);
  text-align: center;
}

/* Actions — mirror DNS */
.whois-action-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.whois-action-row--main {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.whois-action-row--util {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.whois-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  width: 100%;
  font-family: inherit;
  white-space: nowrap;
}

.whois-action-btn-label {
  white-space: nowrap;
}

.whois-action-btn--outline {
  color: var(--color-text);
  background: var(--color-card);
  border-color: var(--color-border);
  box-shadow: 0 1px 4px rgba(7, 26, 51, 0.04);
}

.whois-action-btn--outline:hover {
  border-color: rgba(22, 199, 132, 0.35);
  background: rgba(22, 199, 132, 0.04);
}

.whois-action-btn--primary {
  color: #fff;
  background: linear-gradient(180deg, var(--color-accent), var(--color-accent-dark));
  box-shadow: 0 2px 10px rgba(22, 199, 132, 0.28);
}

.whois-action-btn--secondary {
  color: #fff;
  background: linear-gradient(180deg, #2563EB, #1D4ED8);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.25);
}

.whois-text-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-muted);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}

.whois-text-action:hover {
  color: var(--color-text);
  background: var(--color-bg-soft);
}

.whois-action-divider {
  color: var(--color-border);
}

.whois-report-nav-inner {
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: 0 6px 22px rgba(7, 26, 51, 0.07);
  background: var(--color-card);
  padding: 4px;
  gap: 4px;
}

.whois-report-nav-link {
  min-height: 40px;
  padding: 10px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.whois-report-nav-link:hover {
  background: var(--color-bg-soft);
}

.whois-report-nav-link.is-active {
  color: var(--color-accent-dark);
  background: rgba(22, 199, 132, 0.14);
  box-shadow: inset 0 0 0 1px rgba(22, 199, 132, 0.32);
  font-weight: 700;
}

/* Compact notices */
.whois-notices-section {
  margin-bottom: 24px;
}

.whois-issues-card--compact {
  padding: 18px 22px;
}

.whois-notices-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.whois-notice-compact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--color-border-soft);
  background: var(--color-bg-soft);
}

.whois-notice-compact--info {
  border-color: rgba(59, 130, 246, 0.2);
  background: rgba(59, 130, 246, 0.06);
}

.whois-notice-compact--notice {
  border-color: rgba(59, 130, 246, 0.18);
  background: rgba(59, 130, 246, 0.04);
}

.whois-notice-compact--warning {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.06);
}

.whois-notice-compact--critical {
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.05);
}

.whois-notice-compact-badge {
  flex-shrink: 0;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 100px;
  color: #2563EB;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.whois-notice-compact--warning .whois-notice-compact-badge {
  color: var(--color-warning);
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.22);
}

.whois-notice-compact--critical .whois-notice-compact-badge {
  color: var(--color-error);
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.22);
}

.whois-notice-compact-title {
  margin: 0 0 4px;
  font-size: 0.875rem;
  font-weight: 700;
}

.whois-notice-compact-text,
.whois-notice-compact-rec {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.whois-notice-compact-rec {
  margin-top: 6px;
}

.whois-notices-empty {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* Profile grid */
.whois-profile-section {
  margin-bottom: 28px;
}

.whois-profile-head {
  margin-bottom: 14px;
}

.whois-profile-head .report-section-title {
  margin-bottom: 4px;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.whois-profile-head .report-section-desc {
  font-size: 0.875rem;
  margin-bottom: 8px;
}

.whois-profile-source {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-text);
}

.whois-profile-source .whois-profile-label {
  margin: 0;
}

.whois-rdap-source {
  display: none;
}

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

.whois-profile-card {
  padding: 16px 18px;
  border: 1px solid var(--color-border-soft);
  border-radius: 14px;
  background: var(--color-card);
  box-shadow: 0 2px 14px rgba(7, 26, 51, 0.05);
  transition: box-shadow 0.15s ease;
}

.whois-profile-card:hover {
  box-shadow: 0 4px 18px rgba(7, 26, 51, 0.07);
}

.whois-profile-card--registration {
  border-top: 3px solid rgba(22, 199, 132, 0.45);
}

.whois-profile-card--registrar {
  border-top: 3px solid rgba(59, 130, 246, 0.45);
}

.whois-profile-card--status {
  border-top: 3px solid rgba(59, 130, 246, 0.35);
}

.whois-profile-card--nameservers {
  border-top: 3px solid rgba(22, 199, 132, 0.35);
}

.whois-profile-card--wide {
  grid-column: 1 / -1;
}

.whois-profile-card-title {
  margin: 0 0 12px;
  font-size: 0.9375rem;
  font-weight: 700;
}

.whois-profile-fields {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.whois-profile-field {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--color-border-soft);
}

.whois-profile-field:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.whois-profile-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-muted);
}

.whois-profile-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  word-break: break-word;
}

.whois-profile-empty {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.whois-profile-empty--warn {
  color: var(--color-warning);
}

.whois-profile-note {
  margin: 0 0 10px;
  padding: 8px 10px;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--color-muted);
  background: var(--color-bg-soft);
  border-radius: 8px;
  border: 1px solid var(--color-border-soft);
}

/* Status pills in profile */
.whois-status-pills {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.whois-status-pill {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--color-border-soft);
  background: var(--color-bg-soft);
}

.whois-status-pill--protection {
  border-color: rgba(59, 130, 246, 0.22);
  background: rgba(59, 130, 246, 0.06);
}

.whois-status-pill--good {
  border-color: rgba(22, 199, 132, 0.22);
  background: rgba(22, 199, 132, 0.06);
}

.whois-status-pill--critical {
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.05);
}

.whois-status-pill--warn {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.06);
}

.whois-status-pill-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.whois-status-pill-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text);
}

.whois-status-code--inline {
  display: inline-block;
  margin: 0 0 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-muted);
  background: var(--color-card);
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid var(--color-border-soft);
}

/* Compact nameserver list */
.whois-ns-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.whois-ns-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border-soft);
}

.whois-ns-host {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8125rem;
}

.whois-ns-status {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  white-space: nowrap;
}

.whois-copy-btn--compact {
  padding: 4px 8px;
  font-size: 0.6875rem;
  flex-shrink: 0;
}

.whois-copy-btn--compact svg {
  width: 12px;
  height: 12px;
}

.whois-status-pill-badge {
  font-size: 0.625rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
}

.whois-status-pill-badge--protection {
  color: #2563EB;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.whois-status-pill-badge--good {
  color: var(--color-success);
  background: rgba(22, 199, 132, 0.12);
  border: 1px solid rgba(22, 199, 132, 0.22);
}

.whois-status-pill-badge--critical {
  color: var(--color-error);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.22);
}

.whois-status-pill-badge--warn {
  color: var(--color-warning);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.22);
}

.whois-status-pill-text {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-muted);
  line-height: 1.5;
}

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

.whois-records-table-wrap {
  border-radius: 12px;
}

.whois-records-table-wrap .records-table--whois-ns {
  table-layout: fixed;
  min-width: 520px;
}

.whois-records-table-wrap .records-table--whois-ns th,
.whois-records-table-wrap .records-table--whois-ns td {
  padding: 8px 12px;
  vertical-align: middle;
}

.whois-records-table-wrap .records-table--whois-ns th {
  padding-top: 9px;
  padding-bottom: 9px;
}

.whois-records-table-wrap .records-table--whois-ns tbody tr:hover {
  background: rgba(22, 199, 132, 0.04);
}

.whois-records-table-wrap .records-table--whois-ns td.whois-detail-mono {
  font-size: 0.8125rem;
  word-break: break-all;
}

.whois-records-table-wrap .records-table--whois-ns th:nth-child(2),
.whois-records-table-wrap .records-table--whois-ns td:nth-child(2) {
  width: 110px;
}

.whois-records-table-wrap .records-table--whois-ns th:last-child,
.whois-records-table-wrap .records-table--whois-ns td:last-child {
  width: 102px;
  min-width: 102px;
  padding-left: 8px;
  padding-right: 10px;
  text-align: center;
}

.whois-records-table-wrap .records-actions-cell {
  white-space: nowrap;
}

.whois-records-table-wrap .whois-copy-btn {
  padding: 4px 9px;
  font-size: 0.6875rem;
  gap: 4px;
}

.whois-records-table-wrap .whois-copy-btn svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* Raw RDAP — compact collapsed */
.whois-raw-section {
  margin-bottom: 24px;
}

.whois-raw-card {
  padding: 16px 20px;
}

.whois-raw-head {
  margin-bottom: 10px;
}

.whois-raw-source {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border-soft);
  border-radius: 10px;
}

.whois-raw-source-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  flex: 0 0 100%;
}

.whois-raw-source-url {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.75rem;
  word-break: break-all;
  line-height: 1.4;
}

.whois-raw-head .report-section-title {
  font-size: 1rem;
  margin-bottom: 4px;
}

.whois-raw-head .report-section-desc {
  font-size: 0.8125rem;
  margin: 0;
}

.whois-raw-block.is-collapsed {
  margin-top: 0;
}

.whois-raw-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.whois-raw-actions .whois-action-btn {
  width: auto;
  min-width: 130px;
}

.whois-raw-toggle {
  font-size: 0.8125rem;
}

.whois-copy-json {
  font-size: 0.8125rem;
}

.whois-raw-empty {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.whois-lookup-report .report-section {
  margin-bottom: 24px;
}

/* Detail grids */
.whois-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

.whois-detail-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border-soft);
}

.whois-detail-row dt {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-muted);
  margin: 0;
}

.whois-detail-row dd {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text);
  word-break: break-word;
}

.whois-detail-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8125rem;
}

.whois-expiry-badge {
  display: inline-flex;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: 100px;
  vertical-align: middle;
}

.whois-expiry-badge--warn {
  color: var(--color-warning);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.22);
}

.whois-expiry-badge--good {
  color: var(--color-success);
  background: rgba(22, 199, 132, 0.12);
  border: 1px solid rgba(22, 199, 132, 0.22);
}

.whois-expiry-badge--notice {
  color: #2563EB;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.whois-expiry-badge--critical {
  color: var(--color-error);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.22);
}

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

.whois-status-card {
  padding: 16px 18px;
  border: 1px solid var(--color-border-soft);
  border-radius: 12px;
  background: var(--color-bg-soft);
}

.whois-status-code {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text);
  background: var(--color-card);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--color-border);
}

.whois-status-card p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.whois-empty-state {
  padding: 28px 24px;
  text-align: center;
  color: var(--color-muted);
  background: var(--color-bg-soft);
  border: 1px dashed var(--color-border);
  border-radius: 12px;
}

.whois-empty-state--warn {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.06);
}

.whois-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-card);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
}

.whois-copy-btn span {
  flex-shrink: 0;
}

.whois-copy-btn:hover {
  border-color: rgba(22, 199, 132, 0.35);
  background: rgba(22, 199, 132, 0.06);
}

.whois-raw-pre {
  margin-top: 12px;
  padding: 16px;
  overflow-x: auto;
  font-size: 0.75rem;
  line-height: 1.5;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  max-height: 480px;
}

.whois-raw-pre code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: pre;
}

.whois-redacted-note {
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin: 0 0 12px;
}

.whois-lookup-report .issue-card--critical {
  border-left-color: var(--color-error);
}

.whois-ihoster-helper {
  margin-bottom: 36px;
}

.whois-ihoster-helper-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.07), rgba(22, 199, 132, 0.04));
  box-shadow: 0 2px 14px rgba(7, 26, 51, 0.04);
}

.whois-ihoster-helper-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  color: #2563EB;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.18);
}

.whois-ihoster-helper-copy {
  flex: 1;
  min-width: 0;
}

.whois-ihoster-helper-btn {
  flex-shrink: 0;
  width: auto;
  min-width: 148px;
}

.whois-ihoster-helper-title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
}

.whois-ihoster-helper-text {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.whois-results-related--compact {
  padding: 28px 0 40px;
  border-top: 1px solid var(--color-border-soft);
}

.whois-related-title {
  margin: 0 0 14px;
  font-size: 0.9375rem;
  font-weight: 700;
}

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

.whois-related-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 68px;
  padding: 12px 14px;
  border: 1px solid var(--color-border-soft);
  border-radius: 12px;
  background: var(--color-card);
  text-decoration: none;
  color: var(--color-text);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.whois-related-link:hover {
  border-color: rgba(22, 199, 132, 0.28);
  background: rgba(22, 199, 132, 0.04);
  box-shadow: 0 2px 10px rgba(7, 26, 51, 0.04);
}

.whois-related-link .tool-icon {
  width: 34px;
  height: 34px;
  margin: 0;
  flex-shrink: 0;
  border-radius: 10px;
}

.whois-related-link-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.whois-related-link-label {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
}

.whois-related-link-desc {
  font-size: 0.6875rem;
  color: var(--color-muted);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1024px) {
  .whois-lookup-page .tool-hero-grid {
    grid-template-columns: 1fr;
  }

  .whois-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .whois-dashboard-body {
    grid-template-columns: 1fr;
  }

  .whois-status-visual {
    flex-direction: row;
    align-self: flex-start;
  }

  .whois-compact-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .whois-dashboard-col--status {
    order: 1;
  }

  .whois-dashboard-col--main {
    order: 2;
  }

  .whois-dashboard-col--meta {
    order: 3;
  }

  .whois-checked-at-value {
    white-space: normal;
    text-align: right;
  }

  .whois-dashboard-meta-block {
    align-items: flex-start;
    text-align: left;
  }

  .whois-checked-at {
    align-items: flex-start;
  }

  .whois-checked-at-value {
    text-align: left;
  }

  .whois-dashboard-col--meta .whois-action-group {
    margin-top: 12px;
  }

  .whois-action-row--main {
    flex-direction: column;
  }

  .whois-action-btn {
    width: 100%;
  }

  .whois-profile-grid {
    grid-template-columns: 1fr;
  }

  .whois-profile-field {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .whois-detail-grid {
    grid-template-columns: 1fr;
  }

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

  .whois-ihoster-helper-card {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 768px) {
  .whois-feature-grid,
  .whois-status-grid {
    grid-template-columns: 1fr;
  }

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

  .whois-domain-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .whois-raw-source {
    flex-direction: column;
    align-items: stretch;
  }

  .whois-raw-source .whois-copy-btn {
    align-self: flex-start;
  }

  .whois-report-nav-inner {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .whois-report-nav-inner::-webkit-scrollbar {
    display: none;
  }

  .whois-report-nav-link {
    flex-shrink: 0;
  }

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

  .whois-key-facts {
    grid-template-columns: 1fr;
  }
}

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