/* ── WHOIS Lookup ───────────────────────────────────────────────────── */
.tool-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}
.tool-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.tool-desc {
  color: var(--muted2);
  font-size: 14px;
  margin-bottom: 24px;
}

/* Form */
.whois-form .form-row {
  display: flex;
  gap: 10px;
}
.whois-form .input-wrap--domain { flex: 1; }
.whois-form .input {
  width: 100%;
  height: 44px;
  padding: 12px 16px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  font-family: var(--mono);
  transition: border-color .2s, box-shadow .2s;
}
.whois-form .input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91,138,248,.3);
}
.whois-form .btn-primary {
  min-height: 44px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s, transform .15s, filter .2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.whois-form .btn-primary:hover { transform: scale(1.02); filter: brightness(1.1); }
.whois-form .btn-primary:active { transform: scale(0.98); }
.whois-form .btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; filter: none; }

}

to   { opacity: 1; transform: translateY(0); }
}
@keyframes whois-load {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* Results section */
.whois-results {
  margin-top: 16px;
  animation: fadeInUp .4s var(--ease-out);
}

.result-title {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--accent);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(91,138,248,.15);
}

/* Summary cards row */
.whois-summary {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.whois-summary-card {
  padding: 16px 18px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 14px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  transition: border-color .2s, transform .15s;
}
.whois-summary-card:hover { border-color: var(--border2); transform: translateY(-1px); }
.whois-summary-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}
.whois-summary-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}

/* Details table */
.whois-details {
  margin-bottom: 20px;
}
.whois-details table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.whois-details th {
  text-align: left;
  padding: 12px 14px;
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02);
  width: 180px;
}
.whois-details td {
  padding: 12px 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  word-break: break-all;
  font-family: var(--mono);
  font-size: 13px;
}
.whois-details tr:last-child th,
.whois-details tr:last-child td { border-bottom: none; }
.whois-details tbody tr:nth-child(even) td,
.whois-details tbody tr:nth-child(even) th { background: rgba(255,255,255,.02); }
.whois-details tr:hover td,
.whois-details tr:hover th { background: rgba(255,255,255,.04); }

/* Status badges */
.whois-status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-family: var(--mono);
  background: rgba(91,138,248,.1);
  color: var(--accent);
  margin: 2px 4px 2px 0;
}

/* NS list */
.whois-ns {
  font-family: var(--mono);
  color: var(--cyan);
}

/* Raw WHOIS */
.whois-raw-wrap {
  margin-top: 16px;
}
.whois-raw-wrap summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--muted2);
  padding: 10px 0;
  user-select: none;
  transition: color .2s;
}
.whois-raw-wrap summary:hover { color: var(--accent); }
.whois-raw {
  margin-top: 10px;
  padding: 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted2);
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 500px;
  overflow-y: auto;
  line-height: 1.5;
}

/* Error */
.whois-error { margin-top: 16px; animation: fadeInUp .3s var(--ease-out); }
.card-error {
  border-color: rgba(248,113,113,.3);
}
.card-error p {
  color: var(--red);
  font-size: 14px;
  margin: 0;
}

/* Loading */
.whois-loading { margin-top: 16px; text-align: center; }
.loader-bar {
  height: 3px;
  background: var(--surface2);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 12px;
}
.loader-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  border-radius: 2px;
  animation: whois-load 1.2s ease-in-out infinite;
}
.loader-text {
  font-size: 13px;
  color: var(--muted2);
  text-align: center;
  animation: fadeInUp .3s;
}

/* Info section */
.info-section {
  margin-top: 32px;
}
.info-section h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(91,138,248,.15);
}
.info-section h3 {
  font-size: 15px;
  font-weight: 600;
  margin-top: 16px;
  margin-bottom: 8px;
}
.info-section p {
  font-size: 14px;
  color: var(--muted2);
  line-height: 1.7;
}
.info-section code {
  padding: 2px 7px;
  background: var(--surface2);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
}

/* Date color helpers (set via JS innerHTML) */
.whois-date-green  { color: #22c55e; }
.whois-date-yellow { color: #eab308; }
.whois-date-orange { color: var(--orange); }
.whois-date-red    { color: var(--danger); }

/* Responsive */
@media (max-width: 600px) {
  .whois-form .form-row { flex-direction: column; }
  .whois-form .btn-primary { width: 100%; justify-content: center; }
  .whois-form .input { width: 100%; }
  .whois-summary { grid-template-columns: 1fr 1fr; }
  .whois-details th { width: 120px; font-size: 11px; }
  .whois-details td { font-size: 12px; }
}
@media (max-width: 400px) {
  .whois-summary { grid-template-columns: 1fr; }
}

/* Export bar */
.whois-export-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.whois-export-btn {
  padding: 6px 16px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 8px;
  color: var(--muted2);
  font-size: 12px;
  font-family: var(--mono);
  cursor: pointer;
  transition: all .2s;
}

.whois-export-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(91,138,248,.06);
}

.whois-export-btn.share-btn {
  margin-left: auto;
}
