/* === Bulk domain checker (page-bulk-check-domains.php) === */

.site-main.lm-dc-page { max-width: 1080px; }

.lm-dc-page .page-header { margin-bottom: 1.5rem; }

.lm-dc-lede {
  max-width: 640px;
  margin: 0.25rem auto 0;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #666;
}

/* --- form card --- */
.lm-dc-form {
  background: #fafafa;
  border: 1px solid #e8e8ee;
  border-radius: 14px;
  padding: 1.75rem;
  font-family: "Roboto", sans-serif;
}

.lm-dc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 1.5rem;
}

.lm-dc-field { display: flex; flex-direction: column; min-width: 0; }

.lm-dc-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin: 0 0 0.5rem;
}
.lm-dc-label em { font-style: normal; font-weight: 400; color: #999; text-transform: none; letter-spacing: 0; }
.lm-dc-label + .lm-dc-label, .lm-dc-chips + .lm-dc-label { margin-top: 1.25rem; }

.lm-dc-hint { font-size: 0.78rem; color: #999; margin-top: 0.4rem; }

.lm-dc-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 190px;
  padding: 0.75rem 0.85rem;
  font: 400 0.95rem/1.6 "Roboto", sans-serif;
  color: #1a1a1a;
  background: #fff;
  border: 1px solid #d6d6e0;
  border-radius: 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.lm-dc-form textarea::placeholder { color: #b5b5c0; }
.lm-dc-form textarea:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* chips (TLDs) */
.lm-dc-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.lm-dc-chip { position: relative; cursor: pointer; }
.lm-dc-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.lm-dc-chip span {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border: 1px solid #d6d6e0;
  border-radius: 999px;
  background: #fff;
  color: #444;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.2;
  transition: all 0.15s;
  user-select: none;
}
.lm-dc-chip input:checked + span { background: #4f46e5; border-color: #4f46e5; color: #fff; }
.lm-dc-chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3); }
.lm-dc-chip:hover span { border-color: #4f46e5; }

/* options (variants) */
.lm-dc-options { display: flex; flex-direction: column; gap: 0.35rem; }
.lm-dc-options label {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: #333;
  cursor: pointer;
  padding: 0.2rem 0;
}
.lm-dc-options input { width: 16px; height: 16px; margin: 0; accent-color: #4f46e5; cursor: pointer; }
.lm-dc-options code {
  font-size: 0.75rem;
  color: #999;
  background: none;
  padding: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* actions */
.lm-dc-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #ececf2;
}
.lm-dc-count { font-size: 0.85rem; color: #777; }
.lm-dc-count.is-over { color: #b45309; font-weight: 500; }

.lm-dc-button {
  appearance: none;
  border: 1px solid #4f46e5;
  background: #4f46e5;
  color: #fff;
  font: 600 0.95rem/1 "Roboto", sans-serif;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
}
.lm-dc-button:hover { background: #4338ca; border-color: #4338ca; }
.lm-dc-button:active { transform: translateY(1px); }
.lm-dc-button:disabled { opacity: 0.55; cursor: wait; }
.lm-dc-button--ghost { background: #fff; color: #4f46e5; }
.lm-dc-button--ghost:hover { background: #eef2ff; border-color: #4f46e5; }
.lm-dc-button--small { padding: 0.55rem 0.95rem; font-size: 0.85rem; }

.lm-dc-error {
  margin: 1rem 0 0;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 0.9rem;
}

/* --- results --- */
.lm-dc-results { margin-top: 2.5rem; font-family: "Roboto", sans-serif; }

.lm-dc-progress { height: 4px; background: #ececf2; border-radius: 2px; overflow: hidden; }
.lm-dc-progress-bar { height: 100%; width: 0; background: #4f46e5; transition: width 0.3s ease; }
.lm-dc-results:not(.is-running) .lm-dc-progress { opacity: 0; transition: opacity 0.6s 0.4s; }

.lm-dc-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 1.25rem 0 1rem;
}

.lm-dc-tabs { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.lm-dc-tabs button {
  appearance: none;
  border: 0;
  background: none;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  font: 500 0.9rem/1 "Roboto", sans-serif;
  color: #666;
  cursor: pointer;
}
.lm-dc-tabs button b {
  display: inline-block;
  margin-left: 0.3rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #ececf2;
  color: #555;
  font-size: 0.75rem;
  font-weight: 600;
}
.lm-dc-tabs button:hover { background: #f3f3f7; color: #1a1a1a; }
.lm-dc-tabs button.is-active { background: #1a1a1a; color: #fff; }
.lm-dc-tabs button.is-active b { background: rgba(255, 255, 255, 0.2); color: #fff; }

.lm-dc-tools { display: flex; gap: 0.5rem; }

.lm-dc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.lm-dc-table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #999;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #e8e8ee;
}
.lm-dc-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #f0f0f4;
  vertical-align: middle;
}
.lm-dc-table tr:hover td { background: #fafafa; }
.lm-dc-domain { font-weight: 500; color: #1a1a1a; word-break: break-all; }
.lm-dc-via { font-size: 0.75rem; color: #aaa; text-align: right; width: 4rem; }
.lm-dc-table th:last-child { text-align: right; }

.lm-dc-pill {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.lm-dc-pill--pending   { background: #f3f3f7; color: #999; }
.lm-dc-pill--available { background: #dcfce7; color: #166534; }
.lm-dc-pill--likely    { background: #fef3c7; color: #92400e; }
.lm-dc-pill--taken     { background: #f1f1f5; color: #6b7280; }
.lm-dc-pill--unknown   { background: #fee2e2; color: #991b1b; }
.lm-dc-pill--invalid   { background: #fee2e2; color: #991b1b; }

tr[data-status="pending"] .lm-dc-domain { color: #999; }

.lm-dc-note {
  margin: 1.5rem 0 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid #d97706;
  background: #fffbeb;
  border-radius: 0 8px 8px 0;
  font-family: "Noto Serif", Georgia, serif;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #555;
}

.lm-dc-page .entry-content { margin-top: 3rem; }

/* --- responsive --- */
@media (max-width: 900px) {
  .lm-dc-grid { grid-template-columns: 1fr 1fr; }
  .lm-dc-grid .lm-dc-field:last-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .lm-dc-form { padding: 1.15rem; }
  .lm-dc-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .lm-dc-form textarea { min-height: 130px; }
  .lm-dc-button { width: 100%; text-align: center; }
  .lm-dc-tools { width: 100%; }
  .lm-dc-tools .lm-dc-button { width: auto; flex: 1; }
  .lm-dc-via, .lm-dc-table th:last-child { display: none; }
}
