/* IP Address / Domain Converter v2 */
.ipd { margin: 8px 0 24px; }
.ipd-form {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.ipd-form input[type="text"] {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  font-size: 15px;
  font-family: Menlo, Consolas, "Hiragino Sans", monospace;
  border: 1.5px solid #221d18;
  border-radius: 12px;
  background: #fff;
}
.ipd-form input[type="text"]:focus { outline: 2px solid #ff7a00; outline-offset: 1px; }
.ipd-submit {
  flex-shrink: 0;
  padding: 12px 26px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: #ff7a00;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ipd-submit:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(255, 122, 0, 0.4); }
.ipd-submit:disabled { opacity: 0.5; cursor: default; transform: none; box-shadow: none; }
.ipd-detect {
  min-height: 20px;
  margin: 8px 2px 0;
  font-size: 12.5px;
  font-weight: 700;
  color: #6b6157;
}
.ipd-detect .ipd-badge {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 10px;
  font-size: 11.5px;
  font-weight: 800;
  color: #fff;
  background: #ff7a00;
  border-radius: 999px;
}
.ipd-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 14px 18px;
  font-size: 13.5px;
  font-weight: 700;
  color: #6b6157;
  background: #fff4e6;
  border: 1.5px solid #221d18;
  border-radius: 12px;
}
.ipd-spinner {
  width: 16px;
  height: 16px;
  border: 2.5px solid #ffd9b3;
  border-top-color: #ff7a00;
  border-radius: 50%;
  animation: ipd-spin 0.7s linear infinite;
}
@keyframes ipd-spin { to { transform: rotate(360deg); } }
.ipd-result {
  margin-top: 14px;
  padding: 16px 18px;
  background: #fff4e6;
  border: 1.5px solid #221d18;
  border-radius: 12px;
}
.ipd-result-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ipd-result-title { font-size: 13px; font-weight: 800; color: #6b6157; }
.ipd-copy {
  padding: 7px 16px;
  font-size: 12.5px;
  font-weight: 800;
  color: #fff;
  background: #ff7a00;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ipd-copy:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(255, 122, 0, 0.4); }
.ipd-copy-done {
  margin-left: auto;
  font-size: 12px;
  font-weight: 800;
  color: #16a34a;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.ipd-copy-done.is-visible { opacity: 1; }
.ipd-result-value {
  margin: 10px 0 0;
  font-family: Menlo, Consolas, "Hiragino Sans", monospace;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.4;
  word-break: break-all;
}
.ipd-empty {
  margin-top: 14px;
  padding: 14px 18px;
  font-size: 13.5px;
  line-height: 1.7;
  background: #fffdf9;
  border: 1.5px dashed #221d18;
  border-radius: 12px;
  color: #6b6157;
}
.ipd-records { margin-top: 18px; }
.ipd-records-title { margin: 0 0 8px; font-size: 13px; font-weight: 800; color: #6b6157; }
.ipd-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1.5px solid #221d18;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  font-size: 13.5px;
}
.ipd-table th, .ipd-table td {
  padding: 9px 14px;
  text-align: left;
  border-bottom: 1px solid #e8e0d5;
  vertical-align: top;
}
.ipd-table thead th {
  background: #fff4e6;
  font-size: 12.5px;
  font-weight: 800;
  color: #6b6157;
  border-bottom: 1.5px solid #221d18;
}
.ipd-table tbody tr:last-child td { border-bottom: 0; }
.ipd-table td:first-child { width: 84px; white-space: nowrap; }
.ipd-table td:last-child {
  font-family: Menlo, Consolas, "Hiragino Sans", monospace;
  word-break: break-all;
}
.ipd-type {
  display: inline-block;
  min-width: 52px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  border-radius: 999px;
  color: #fff;
  background: #6b6157;
}
.ipd-type--a { background: #ff7a00; }
.ipd-type--aaaa { background: #e05a00; }
.ipd-type--mx { background: #1f8a5b; }
.ipd-type--ns { background: #2563ae; }
.ipd-type--txt { background: #8a6d1f; }
.ipd-type--cname { background: #7c4dbe; }
@media (max-width: 768px) {
  .ipd-form { flex-direction: column; }
  .ipd-submit { width: 100%; }
  .ipd-result-value { font-size: 20px; }
}
