/* ===== Domain Search — ince / naif ===== */
.ds {
  position: relative;
  z-index: 1;
  padding: 8px 0 56px;
}

.ds__head {
  max-width: 32rem;
  margin: 0 auto 1.35rem;
  text-align: center;
}

.ds__tag {
  margin: 0 0 0.5rem;
  font-family: var(--font-display, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.ds__title {
  margin: 0 0 0.55rem;
  font-family: var(--font-display, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: #e2e8f0;
}

.ds__sub {
  margin: 0 auto;
  max-width: 28rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #64748b;
  font-weight: 450;
}

.ds__shell {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}

.ds__console {
  padding: 0.65rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.ds__bar {
  display: flex;
  align-items: stretch;
  gap: 0.45rem;
}

.ds__field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0 0.85rem;
  min-height: 42px;
  border-radius: 9px;
  background: rgba(2, 6, 23, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color 0.2s ease;
}

.ds__field:focus-within {
  border-color: rgba(148, 163, 184, 0.35);
}

.ds__www {
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: #475569;
  user-select: none;
}

.ds__input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #e2e8f0;
  font-family: var(--font-display, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.55rem 0;
}

.ds__input::placeholder {
  color: #475569;
  font-weight: 450;
}

.ds__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 42px;
  padding: 0 1.1rem;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-family: var(--font-display, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-size: 0.85rem;
  font-weight: 600;
  color: #f8fafc;
  background: #1e40af;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.ds__submit:hover {
  background: #1d4ed8;
}

.ds__submit:disabled {
  opacity: 0.5;
  cursor: default;
}

.ds__tlds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ds__tld {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  user-select: none;
}

.ds__tld input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ds__tld-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
}

.ds__tld-price {
  font-size: 0.68rem;
  font-weight: 500;
  color: #64748b;
}

.ds__tld:hover {
  border-color: rgba(148, 163, 184, 0.22);
}

.ds__tld.is-checked,
.ds__tld:has(input:checked) {
  border-color: rgba(96, 165, 250, 0.28);
  background: rgba(37, 99, 235, 0.1);
}

.ds__tld.is-checked .ds__tld-name,
.ds__tld:has(input:checked) .ds__tld-name {
  color: #cbd5e1;
}

.ds__tld.is-checked .ds__tld-price,
.ds__tld:has(input:checked) .ds__tld-price {
  color: #7dd3fc;
}

.ds__results {
  margin-top: 0;
}

.ds__results.has-results {
  margin-top: 0.75rem;
}

.ds__panel {
  max-height: min(48vh, 380px);
  overflow: auto;
  border-radius: 10px;
  background: rgba(8, 12, 22, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 116, 139, 0.4) transparent;
  animation: ds-in 0.3s ease both;
}

.ds__panel::-webkit-scrollbar { width: 4px; }
.ds__panel::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.4);
  border-radius: 999px;
}

@keyframes ds-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.ds__group { margin-bottom: 0.15rem; }

.ds__group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem 0.35rem;
}

.ds__group-title {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
}

.ds__group-title em {
  font-style: normal;
  color: #cbd5e1;
}

.ds__count {
  font-size: 0.65rem;
  font-weight: 600;
  color: #475569;
}

.ds__group-desc {
  margin: 0 0.75rem 0.4rem;
  font-size: 0.72rem;
  color: #475569;
}

.ds__fold {
  margin: 0.25rem 0.35rem 0.45rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.ds__fold--ai {
  border-color: rgba(96, 165, 250, 0.12);
}

.ds__fold-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  list-style: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
}

.ds__fold-summary::-webkit-details-marker { display: none; }

.ds__fold-summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid #64748b;
  border-bottom: 1.5px solid #64748b;
  transform: rotate(45deg);
  flex-shrink: 0;
}

.ds__fold[open] > .ds__fold-summary::after {
  transform: rotate(-135deg);
  margin-top: 3px;
}

.ds__fold[open] > .ds__fold-summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ds__fold > .ds__group-desc,
.ds__fold > .ds__grid {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.ds__grid {
  display: flex;
  flex-direction: column;
}

.ds__row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto auto;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ds__row:last-child { border-bottom: 0; }

.ds__row--busy { opacity: 0.65; }

.ds__row--loading,
.ds__row--msg {
  display: flex;
  justify-content: center;
  grid-template-columns: 1fr;
  padding: 1rem;
  color: #64748b;
  font-size: 0.82rem;
  text-align: center;
  gap: 0.5rem;
}

.ds__spinner {
  width: 14px;
  height: 14px;
  border: 1.5px solid rgba(148, 163, 184, 0.2);
  border-top-color: #60a5fa;
  border-radius: 50%;
  animation: ds-spin 0.7s linear infinite;
}

@keyframes ds-spin {
  to { transform: rotate(360deg); }
}

.ds__row-main {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
}

.ds__row-main strong {
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
  letter-spacing: -0.01em;
  word-break: break-all;
}

.ds__status {
  display: inline-flex;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 650;
}

.ds__status--ok {
  color: #86efac;
  background: rgba(22, 163, 74, 0.12);
}

.ds__status--busy {
  color: #fca5a5;
  background: rgba(220, 38, 38, 0.1);
}

.ds__price {
  font-size: 0.88rem;
  font-weight: 650;
  color: #cbd5e1;
  white-space: nowrap;
  text-align: right;
}

.ds__price span {
  font-size: 0.68rem;
  font-weight: 500;
  color: #64748b;
}

.ds__note {
  grid-column: 1 / -1;
  margin: -0.15rem 0 0;
  font-size: 0.7rem;
  color: #475569;
}

.ds__add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 0.7rem;
  border-radius: 7px;
  border: 1px solid rgba(96, 165, 250, 0.25);
  background: transparent;
  color: #93c5fd;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.ds__add:hover {
  background: rgba(37, 99, 235, 0.14);
}

.ds__add:disabled {
  opacity: 0.5;
  cursor: default;
}

@media (max-width: 640px) {
  .ds {
    padding: 4px 0 44px;
  }

  .ds__bar {
    flex-direction: column;
  }

  .ds__submit {
    width: 100%;
  }

  .ds__row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "main add"
      "price add";
  }

  .ds__row-main { grid-area: main; }
  .ds__price { grid-area: price; text-align: left; }
  .ds__add { grid-area: add; align-self: center; }
  .ds__row--busy {
    grid-template-columns: 1fr;
    grid-template-areas: "main";
  }
}

@media (max-width: 480px) {
  .ds__www { display: none; }
}
