.whois-page { padding: 2.25rem 0 3rem; }
.whois-hero { margin-bottom: 1rem; }
.whois-title { margin: 0.5rem 0; font-family: "Syne", sans-serif; font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.1; }
.whois-title span { color: #2c67f2; }
.whois-sub { margin: 0; max-width: 62ch; color: #445166; }

.whois-panel {
  border: 1px solid #dbe3f1;
  border-radius: 14px;
  background: #f7f9fe;
  padding: 1rem;
}

.whois-row { display: grid; grid-template-columns: 1fr auto; gap: 0.65rem; }
.whois-label { display: inline-block; font-weight: 600; margin-bottom: 0.45rem; }
.whois-input { width: 100%; min-height: 2.9rem; border-radius: 10px; border: 1px solid #becce4; padding: 0.65rem 0.8rem; font-size: 1rem; background: #fff; }
.whois-btn { border-radius: 10px; min-width: 140px; }
.whois-hint { margin: 0.55rem 0 0; color: #64728a; font-size: 0.92rem; }
.whois-error { margin: 0.6rem 0 0; color: #b30f2f; font-weight: 600; }

.whois-layout { margin-top: 0.9rem; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 0.75rem; align-items: start; }
.whois-main { display: grid; gap: 0.7rem; }
.whois-side { display: grid; gap: 0.7rem; }

.whois-box {
  border: 1px solid #d3dcec;
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
}

.whois-box > h2 {
  margin: 0;
  padding: 0.62rem 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  background: #eef3fb;
  border-bottom: 1px solid #dfe7f5;
  color: #1d2b49;
}

.whois-box--side > h2 { font-size: 0.97rem; }
.whois-box--side p { margin: 0.55rem 0.75rem; color: #4d5d79; font-size: 0.9rem; }
.whois-box--side .button { margin: 0 0.75rem 0.75rem; }

.whois-info-table { display: grid; }
.whois-info-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0.8rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #ecf1fa;
}
.whois-info-row:last-child { border-bottom: 0; }
.whois-info-row > span { color: #5a6985; font-size: 0.9rem; }
.whois-info-row > strong { color: #1a2947; font-size: 0.93rem; font-weight: 600; word-break: break-word; }

.whois-registrar-value { display: inline-flex; align-items: center; gap: 0.45rem; }
.whois-registrar-logo {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 4px;
  border: 1px solid #d2dbeb;
  background: #fff;
  object-fit: contain;
  padding: 1px;
  flex-shrink: 0;
}

.whois-compact-pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.9rem;
  line-height: 1.35;
  color: #1a2947;
}

.whois-detail-rows { display: grid; }
.whois-detail-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0.8rem;
  padding: 0.48rem 0.75rem;
  border-bottom: 1px solid #ecf1fa;
}
.whois-detail-row:last-child { border-bottom: 0; }
.whois-detail-key { color: #5a6985; font-size: 0.9rem; }
.whois-detail-value { color: #1a2947; font-size: 0.93rem; word-break: break-word; }

.whois-related-list { padding: 0.5rem 0.75rem 0.75rem; display: grid; gap: 0.45rem; }
.whois-related-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.45rem;
  border: 1px solid #e2e8f5;
  border-radius: 7px;
  background: #fff;
}
.whois-related-item strong { font-size: 0.86rem; color: #1a2947; font-weight: 600; word-break: break-all; }
.whois-related-item a { font-size: 0.75rem; font-weight: 700; color: #2b66f2; }

.whois-accordion {
  margin-top: 0.7rem;
  border: 1px solid #dbe3f1;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.whois-accordion > summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  padding: 0.62rem 0.75rem;
  background: #f8faff;
  border-bottom: 1px solid #ebf1fb;
}
.whois-accordion > summary::-webkit-details-marker { display: none; }
.whois-accordion > *:not(summary) { padding: 0.65rem 0.75rem; }

.whois-result--flash { animation: whoisFlash 700ms ease; }
@keyframes whoisFlash {
  0% { box-shadow: 0 0 0 0 rgba(44, 103, 242, 0.25); }
  100% { box-shadow: 0 0 0 12px rgba(44, 103, 242, 0); }
}

.whois-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 0.8rem;
  border: 1px solid #d5deee;
  border-radius: 3px;
  overflow: hidden;
  margin-right: 0.35rem;
  vertical-align: -0.08rem;
}
.whois-flag img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 980px) {
  .whois-layout { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .whois-row { grid-template-columns: 1fr; }
  .whois-btn { width: 100%; }
  .whois-info-row, .whois-detail-row { grid-template-columns: 1fr; gap: 0.2rem; }
}
