/* WHOIS modal styling */
.ohnohoney {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.whois-modal .modal-dialog {
  width: 95%;
  max-width: 1100px;
  margin: 20px auto;
}

.whois-modal .modal-content {
  border-radius: 12px;
  border: 1px solid #f3c2a3;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.whois-modal .modal-header {
  background: #fff8f2;
  border-bottom: 1px solid #f0d5c3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.whois-modal .modal-body {
  flex: 1 1 auto;
  max-height: calc(92vh - 140px);
  overflow-y: auto;
  padding: 16px;
  background: #f7f9fb;
}

.whois-modal .modal-footer {
  background: #fff8f2;
  border-top: 1px solid #f0d5c3;
}

.whois-modal .modal-title {
  font-size: 22px;
  font-weight: 700;
  color: #2073ba;
}

.whois-header::before,
.whois-header::after {
  display: none;
}

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

.whois-toggle {
  border-color: #f36e21;
  color: #f36e21;
  background: #fff;
}

.whois-toggle:hover {
  background: #fff3ea;
}

.whois-card {
  background: #f6fafe;
  border: 1px solid #d8e6f4;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(32, 115, 186, 0.08);
}

.whois-toolbar {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.whois-btn {
  border: none;
  color: #fff;
  background: #2073ba;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.whois-btn:hover {
  background: #165a92;
  transform: translateY(-1px);
}

.whois-hero {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid #dbe8f5;
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.whois-hero-left {
  flex: 1 1 320px;
  min-width: 240px;
}

.whois-hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 220px;
}

.whois-domain-name {
  font-size: 30px;
  font-weight: 800;
  color: #103d6d;
  word-break: break-word;
}

.whois-domain-sub {
  font-size: 14px;
  color: #4c5e72;
  margin-top: 6px;
  line-height: 1.5;
}

.whois-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 14px;
}

.whois-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #27a1a6;
}

.whois-status.is-active {
  background: #eaf5ff;
  color: #104b79;
}

.whois-status.is-unknown {
  background: #fff1f0;
  color: #b94539;
}

.whois-status.is-unknown .whois-status-dot {
  background: #b94539;
}

.whois-source {
  font-size: 12px;
  color: #5b6c82;
}

.whois-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 16px 0 22px;
}

.whois-metric {
  background: #ffffff;
  border: 1px solid #e3edf8;
  border-radius: 14px;
  padding: 16px 16px 14px;
}

.whois-metric-label {
  font-size: 11px;
  text-transform: uppercase;
  color: #73839f;
  letter-spacing: 0.5px;
}

.whois-metric-value {
  font-size: 22px;
  font-weight: 800;
  color: #103d6d;
  margin-top: 6px;
}

.whois-metric-sub {
  font-size: 12px;
  color: #60708a;
  margin-top: 4px;
}

.whois-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 16px;
}

.whois-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: #e9f2fb;
  color: #1a4f78;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.whois-chip-link {
  border: 1px solid #c5d7ee;
}

.whois-chip-link:hover {
  background: #dceaf8;
}

.whois-chip.is-muted {
  background: #eef0f3;
  color: #7c8a9b;
}

.whois-ns-list {
  font-size: 12px;
  font-weight: 500;
  color: #1f4e7a;
  line-height: 1.6;
  text-transform: lowercase;
}

.whois-ns-empty {
  color: #7d8999;
  font-size: 12px;
  font-weight: 500;
}

.whois-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.whois-section {
  border: 1px solid #dbe7f2;
  border-radius: 16px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(16, 61, 109, 0.04);
}

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

.whois-section-title {
  font-size: 12px;
  font-weight: 700;
  color: #185a9f;
  text-transform: uppercase;
  margin-bottom: 10px;
  letter-spacing: 0.6px;
  position: relative;
}

.whois-section-title::after {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2073ba 0%, #f36e21 100%);
}

.whois-kv-row {
  display: grid;
  grid-template-columns: minmax(120px, 34%) 1fr;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid #eef4fb;
  align-items: start;
}

.whois-kv-row:last-child {
  border-bottom: none;
}

.whois-kv-label {
  font-size: 12px;
  color: #65728a;
}

.whois-kv-value {
  font-size: 14px;
  color: #20344e;
  text-align: left;
  word-break: break-word;
}

.whois-kv-empty {
  font-size: 12px;
  color: #8a96a5;
}

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

.whois-contact-card {
  border: 1px solid #d9e6f4;
  border-radius: 16px;
  padding: 16px;
  background: #fdfcff;
  box-shadow: 0 10px 24px rgba(16, 61, 109, 0.04);
}

.whois-contact-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: #185a9f;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.whois-empty-block {
  font-size: 13px;
  color: #7f8d9e;
  padding: 8px 0;
}

.whois-all {
  margin-top: 16px;
  border: 1px solid #dbe7f2;
  border-radius: 16px;
  padding: 14px 16px;
  background: #f9fbff;
}

.whois-all summary {
  cursor: pointer;
  font-weight: 700;
  color: #185a9f;
}

.whois-all-body {
  margin-top: 12px;
  padding-right: 4px;
}

.whois-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.whois-table th,
.whois-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eef4fb;
  vertical-align: top;
}

.whois-table th {
  width: 32%;
  color: #5f738f;
  font-weight: 700;
}

.whois-table td {
  color: #2e3d55;
  word-break: break-word;
}

.whois-table td a {
  color: #2073ba;
  text-decoration: none;
}

.whois-table td a:hover {
  text-decoration: underline;
}

.whois-table-empty {
  text-align: center;
  color: #7d8a9e;
}

.whois-raw {
  margin-top: 18px;
}

.whois-raw summary {
  cursor: pointer;
  font-weight: 700;
  color: #185a9f;
}

.whois-raw-pre {
  background: #0f1724;
  color: #00ff62;
  padding: 16px;
  border-radius: 12px;
  max-height: 340px;
  overflow: auto;
}

.whois-modal.is-full {
  padding-right: 0 !important;
}

.whois-modal.is-full .modal-dialog {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
}




.whois-modal.is-full .modal-content {
  height: 100vh !important;
  max-height: none !important;
  border-radius: 0 !important;
  border: none !important;
}

.whois-modal.is-full .modal-body {
  max-height: calc(100vh - 120px) !important;
  height: calc(100vh - 120px) !important;
  overflow-y: auto !important;
}

.whois-modal.is-full .whois-raw-pre {
  max-height: 50vh !important;
}

@media (max-width: 600px) {
  .whois-hero-right {
    align-items: flex-start;
  }

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

  .whois-modal .modal-body {
    max-height: calc(100vh - 180px);
  }

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

  .whois-table th {
    width: 40%;
  }
}

.whois-ns-block {
  background: #ffffff;
  border: 1px solid #e3edf8;
  border-radius: 18px;
  padding: 20px;
  margin: 16px 0;
  box-shadow: 0 4px 12px rgba(16, 61, 109, 0.02);
}

.whois-ns-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #f0f5fa;
  padding-bottom: 12px;
}

.whois-ns-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.whois-ns-icon-bg {
  width: 32px;
  height: 32px;
  background: #eef7f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #43a047;
}

.whois-ns-title {
  font-size: 13px;
  font-weight: 700;
  color: #4c5e72;
  letter-spacing: 0.8px;
}

.whois-ns-meta {
  font-size: 11px;
  font-weight: 600;
  color: #78909c;
}

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

.whois-ns-item {
  background: #f7f9f7;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #263238;
  border: 1px solid #edf2ed;
}

.whois-ns-dot {
  width: 8px;
  height: 8px;
  background: #43a047;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(67, 160, 71, 0.15);
}

.whois-ns-empty {
  grid-column: 1 / -1;
  padding: 20px;
  text-align: center;
  color: #90a4ae;
  font-style: italic;
  font-size: 13px;
}
.whois-modal{
        z-index: 9999;
}

#WHOISLookup .modal-dialog {
    max-width: 1100px;
    max-height: 100vh;
}


.modal-open .modal {
  
    background: #00000070;
}
#WHOISLookup .modal-body {
     height: auto;
}


@media (max-width: 600px) {
    .whois-hero-right {
        align-items: flex-start;
    }

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

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


.whois-contact-grid{
     grid-template-columns: 1fr;
}
    .whois-table th {
        width: 40%;
    }
}

@media (max-width: 600px) {
    .whois-contact-grid {
        grid-template-columns: 1fr !important;
    }
    
    .whois-metric-value {
    font-size: 20px;
    font-weight: 800;
    
}
    
}


.whois-modal.is-full .modal-content {
    height: auto !important;
 
    margin-bottom: 0!important;
  
    padding-bottom: 0!important;
}



button#whoisToggleView {
    width: 74px;
}