* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: #f1f5f9;
  color: #0f172a;
  font-family: Tahoma, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.55;
}
.wrap { max-width: 980px; margin: 20px auto; padding: 0 14px; }
.search-card {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.search-title { font-size: 16px; font-weight: bold; display: block; }
.search-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
#target-input {
  flex: 1;
  min-width: 220px;
  padding: 9px 12px;
  border: 1px solid #94a3b8;
  border-radius: 6px;
  font-family: Consolas, monospace;
  font-size: 14px;
  direction: ltr;
}
.btn-whois {
  background: #0b57d0;
  color: #fff;
  border: none;
  padding: 9px 22px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}
.presets { margin-top: 10px; font-size: 11.5px; color: #64748b; font-family: Consolas, monospace; direction: ltr; }
.presets a { color: #0b57d0; text-decoration: none; margin: 0 4px; }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}
@media (max-width: 700px) { .cards-grid { grid-template-columns: 1fr; } }
.info-card {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 14px 16px;
}
.info-card h3 {
  font-size: 13px;
  color: #1e293b;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 8px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.kv-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px dashed #f1f5f9;
  font-size: 12.5px;
}
.kv-row span:first-child { color: #64748b; }
.kv-row strong { font-family: Consolas, monospace; direction: ltr; color: #0f172a; }
.expiry-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}
.expiry-fill { height: 100%; background: #22c55e; width: 75%; }
.expiry-fill.warn { background: #eab308; }
.expiry-fill.danger { background: #ef4444; }
.pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-family: Consolas, monospace;
  background: #dcfce7;
  color: #166534;
  margin: 2px;
}
.ns-list-mono {
  font-family: Consolas, monospace;
  direction: ltr;
  font-size: 12px;
  line-height: 1.7;
}
.raw-box {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 14px;
  font-family: Consolas, monospace;
  font-size: 12px;
  direction: ltr;
  text-align: left;
  overflow-x: auto;
  white-space: pre-wrap;
  line-height: 1.55;
}
.quick-actions { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.quick-actions a {
  background: #fff;
  border: 1px solid #cbd5e1;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: #0b57d0;
  font-weight: bold;
  font-size: 12px;
}
.quick-actions a:hover { background: #eff6ff; border-color: #3b82f6; }
.hidden { display: none !important; }
