.bphs-domain-tool {
  --bphs-domain-tool-btn-bg: linear-gradient(135deg, #4f46e5, #3b82f6);
  background: #fff;
  border: 1px solid #e7ebf3;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(25, 40, 72, 0.05);
  margin: 18px 0;
}

.bphs-domain-tool__hero {
  text-align: center;
  padding: 8px 8px 14px;
}

.bphs-domain-tool__eyebrow {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 6px;
}

.bphs-domain-tool__title {
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1.2;
  color: #24324a;
}

.bphs-domain-tool__subtitle {
  margin: 0 auto;
  max-width: 700px;
  color: #667085;
  font-size: 14px;
}

.bphs-domain-tool__searchbar {
  margin: 14px auto 0;
  max-width: 920px;
  display: grid;
  grid-template-columns: 1fr 150px auto;
  gap: 10px;
  align-items: center;
}

.bphs-domain-tool[data-mode="whois"] .bphs-domain-tool__searchbar {
  grid-template-columns: 1fr auto;
}

.bphs-domain-tool__searchbar input,
.bphs-domain-tool__searchbar select {
  height: 46px;
  border: 1px solid #d8deea;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 14px;
  background: #fff;
}

.bphs-domain-tool__btn {
  height: 46px;
  border: none;
  border-radius: 999px;
  padding: 0 18px;
  color: #fff;
  font-weight: 600;
  background: var(--bphs-domain-tool-btn-bg);
  cursor: pointer;
  white-space: nowrap;
}

.bphs-domain-tool__btn:disabled { opacity: .65; cursor: wait; }

.bphs-domain-tool__notice {
  margin-top: 12px;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
}
.bphs-domain-tool__notice.is-info { background: #eef4ff; color: #244175; border: 1px solid #cfe0ff; }
.bphs-domain-tool__notice.is-error { background: #fff1f2; color: #8a2432; border: 1px solid #ffd2d8; }

.bphs-domain-tool__results { margin-top: 14px; }
.bphs-domain-tool__empty {
  border: 1px dashed #d8deea;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  color: #667085;
  background: #fbfcfe;
}

.bphs-domain-tool__inline-note {
  margin-bottom: 10px;
  border: 1px solid #cfe0ff;
  border-radius: 12px;
  padding: 12px 14px;
  background: #eef4ff;
  color: #244175;
  font-size: 13px;
}

.bphs-table-wrap {
  border: 1px solid #e7ebf3;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.bphs-modern-table {
  width: 100%;
  border-collapse: collapse;
}

.bphs-modern-table thead th {
  text-align: left;
  padding: 12px 14px;
  background: #f6f8fc;
  color: #475467;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 1px solid #e7ebf3;
}

.bphs-modern-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #f0f2f7;
  color: #24324a;
  vertical-align: top;
}

.bphs-modern-table tbody tr:last-child td { border-bottom: none; }

.bphs-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
}
.bphs-badge.is-available { background: #ecfdf3; color: #067647; border-color: #b7ebcf; }
.bphs-badge.is-taken { background: #fef3f2; color: #b42318; border-color: #fecdc8; }
.bphs-badge.is-unknown { background: #f2f4f7; color: #344054; border-color: #e4e7ec; }

.bphs-link-pill {
  display: inline-flex;
  border: 1px solid #d8deea;
  border-radius: 999px;
  padding: 4px 10px;
  background: #f9fbff;
  color: #2f4f8f;
  font-size: 12px;
  font-weight: 600;
}

.bphs-row-btn {
  height: 34px;
  border: none;
  border-radius: 999px;
  padding: 0 12px;
  color: #fff;
  font-weight: 600;
  background: var(--bphs-domain-tool-btn-bg);
  cursor: pointer;
  white-space: nowrap;
  font-size: 12px;
}

.bphs-row-transfer {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bphs-row-transfer input {
  height: 34px;
  min-width: 140px;
  border: 1px solid #d8deea;
  border-radius: 10px;
  padding: 0 10px;
  font-size: 12px;
  background: #fff;
}

.bphs-domain-tool__notice a {
  color: inherit;
  text-decoration: underline;
  font-weight: 600;
}

.bphs-domain-tool--compact {
  padding-top: 16px;
}

.bphs-domain-tool--compact .bphs-domain-tool__searchbar {
  margin-top: 0;
}

@media (max-width: 768px) {
  .bphs-domain-tool__title { font-size: 22px; }
  .bphs-domain-tool__searchbar,
  .bphs-domain-tool[data-mode="whois"] .bphs-domain-tool__searchbar {
    grid-template-columns: 1fr;
  }

  .bphs-table-wrap {
    border: none;
    background: transparent;
    overflow: visible;
  }

  .bphs-modern-table thead {
    display: none;
  }

  .bphs-modern-table,
  .bphs-modern-table tbody,
  .bphs-modern-table tr,
  .bphs-modern-table td {
    display: block;
    width: 100%;
  }

  .bphs-modern-table tr {
    background: #fff;
    border: 1px solid #e7ebf3;
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(25, 40, 72, 0.04);
  }

  .bphs-modern-table td {
    border-bottom: 1px solid #f1f3f8;
    padding: 10px 12px;
  }

  .bphs-modern-table td:last-child { border-bottom: none; }

  .bphs-modern-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #667085;
    margin-bottom: 4px;
  }
}