/* ============================================
   도메인 마켓 · 등록 유형 모달
   ============================================ */

.home-shell {
  position: relative;
}

/* ---- Listing type modal ---- */
.page-domains {
  background: #050505;
}

.domains-page {
  padding: 32px 0 64px;
}

.domains-header {
  margin-bottom: 28px;
}

.domains-back,
.register-back {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--text-muted, #a3a3a3);
  text-decoration: none;
  font-size: 0.92rem;
}

.domains-back:hover,
.register-back:hover {
  color: #ff90e8;
}

.domains-header__title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  margin: 0 0 8px;
}

.domains-header__subtitle {
  color: var(--text-muted, #a3a3a3);
  margin: 0 0 20px;
}

.domains-header__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.domains-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: none;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.domain-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 28px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.domain-row:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.85);
}

.domain-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: #fff;
}

.domain-row__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.domain-row__name {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  word-break: break-all;
  line-height: 1.3;
}

.domain-row__specs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 0.82rem;
  color: #a3a3a3;
  line-height: 1.4;
}

.domain-row__sep {
  color: rgba(255, 255, 255, 0.28);
  user-select: none;
}

.domain-row__tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.domain-row__tag {
  color: #d4d4d4;
  font-weight: 600;
}

.domain-row__status {
  font-weight: 700;
  color: #e5e5e5;
}

.domains-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 16px;
}

.domains-filter__label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #a3a3a3;
}

.domains-filter__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.domains-filter__chip {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: #e5e5e5;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.domains-filter__chip:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.domains-filter__chip.is-active {
  border-color: #ffc900;
  background: rgba(255, 201, 0, 0.12);
  color: #fff;
}

.domain-detail__status-badge {
  margin: 0 0 8px;
  font-weight: 700;
  color: #e5e5e5;
}

.domain-row__desc {
  margin: 0;
  max-width: 52rem;
  color: #a3a3a3;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.domain-row__aside {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.domain-row__price {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: #ffc900;
}

.domain-row__cta {
  white-space: nowrap;
}

.domains-empty {
  text-align: center;
  padding: 48px 20px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
}

.domains-empty__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.domains-empty__text {
  color: #a3a3a3;
  margin: 0;
}

.domains-login-gate {
  text-align: center;
  padding: 28px 16px 12px;
}

.domains-login-gate__text {
  margin: 0 0 12px;
  color: #a3a3a3;
  font-size: 1rem;
  line-height: 1.5;
}

.domains-login-gate__link {
  display: inline-block;
  color: #ff90e8;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
}

.domains-login-gate__link:hover {
  text-decoration: underline;
}

/* Legacy card styles kept for any residual references */
.domains-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.domain-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: #171717;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  min-height: 100%;
}

.domain-card__accent {
  height: 4px;
  background: linear-gradient(90deg, #ff90e8, #ffc900);
}

.domain-card--purple .domain-card__accent {
  background: #c084fc;
}

.domain-card--yellow .domain-card__accent {
  background: #ffc900;
}

.domain-card--mint .domain-card__accent {
  background: #5eead4;
}

.domain-card--coral .domain-card__accent {
  background: #fb7185;
}

.domain-card__body {
  padding: 18px 18px 12px;
  flex: 1;
}

.domain-card__name {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 8px;
  word-break: break-all;
}

.domain-card__description {
  color: #d4d4d4;
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0 0 10px;
}

.domain-card__traffic {
  font-size: 0.85rem;
  color: #a3a3a3;
  margin: 0 0 10px;
}

.domain-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: #a3a3a3;
  margin-bottom: 10px;
}

.domain-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.domain-card__transfers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.domain-card__transfer {
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e5e5e5;
}

.domain-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.domain-card__price {
  font-weight: 800;
  font-size: 1.1rem;
}

.form-field--checkboxes {
  border: none;
  padding: 0;
  margin: 0 0 20px;
}

.form-field--checkboxes legend {
  margin-bottom: 10px;
}

.domain-website-status-field,
.domain-website-status-field legend,
.domain-website-status-options {
  border: none;
  outline: none;
  box-shadow: none;
}

.domain-website-status-options {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding: 0;
  background: transparent;
}

.domain-required-notice {
  color: #ff90e8;
}

.domain-transfer-checks {
  margin-top: 4px;
}

.register-page #domain-form-submit.nb-btn--submit {
  width: 100%;
  max-width: none;
}

/* DNS ownership verification */
.domain-dns-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.domain-dns-row .form-input {
  flex: 1;
}

.domain-dns-row .nb-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.domain-dns-panel {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.domain-dns-panel__title {
  margin: 0 0 6px;
  font-weight: 800;
}

.domain-dns-panel__hint,
.domain-dns-panel__status {
  margin: 0 0 10px;
  color: var(--text-muted, #a3a3a3);
  font-size: 0.9rem;
}

.domain-dns-panel__record {
  margin: 0 0 12px;
  display: grid;
  gap: 8px;
}

.domain-dns-panel__record > div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 8px;
  align-items: start;
}

.domain-dns-panel__record dt {
  color: var(--text-muted, #a3a3a3);
  font-size: 0.82rem;
}

.domain-dns-panel__record dd {
  margin: 0;
  word-break: break-all;
}

.domain-dns-panel__record code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.85rem;
  color: #ffc900;
}

.domain-dns-panel__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.domain-dns-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.78rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.7);
}

.domain-dns-badge[data-state="verified"] {
  border-color: rgba(94, 234, 212, 0.5);
  color: #5eead4;
}

.domain-dns-badge[data-state="checking"] {
  border-color: rgba(255, 201, 0, 0.45);
  color: #ffc900;
}

/* Domain detail / report */
.domain-detail,
.domain-report {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.domain-detail__name,
.domain-report__title {
  margin: 0;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
}

.domain-detail__price {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffc900;
}

.domain-detail__desc {
  margin: 0;
  color: var(--text-muted, #a3a3a3);
  line-height: 1.5;
}

.domain-verified-badge {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(94, 234, 212, 0.12);
  color: #5eead4;
  font-size: 0.78rem;
  font-weight: 800;
}

.domain-detail__meta,
.domain-report__proposal-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 0;
}

.domain-report__proposal-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  margin: 16px 0 20px;
}

.domain-detail__meta dt,
.domain-report__proposal-meta dt {
  color: var(--text-muted, #a3a3a3);
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.domain-detail__meta dd,
.domain-report__proposal-meta dd {
  margin: 0;
  font-weight: 700;
}

.domain-report__proposal-meta-item {
  min-width: 0;
}

.domain-report__proposal-meta dd {
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .domain-report__proposal-meta {
    grid-template-columns: 1fr;
  }
}

.domain-report-preparing .detail-not-found__message {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.domain-report-preparing #domain-report-refresh {
  margin-top: 12px;
}

.domain-teaser__title,
.domain-report__card h2,
.domain-report__eyebrow {
  margin: 0 0 8px;
  font-weight: 800;
}

.domain-teaser__badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 12px 0 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 170, 40, 0.45);
  background:
    linear-gradient(135deg, rgba(255, 201, 0, 0.18), rgba(255, 140, 40, 0.1));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.domain-teaser__badge.is-good {
  border-color: rgba(94, 234, 212, 0.45);
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.16), rgba(255, 201, 0, 0.1));
}

.domain-teaser__badge.is-mid {
  border-color: rgba(255, 180, 40, 0.5);
  background: linear-gradient(135deg, rgba(255, 201, 0, 0.2), rgba(255, 140, 40, 0.12));
}

.domain-teaser__badge.is-warn {
  border-color: rgba(255, 140, 40, 0.55);
  background: linear-gradient(135deg, rgba(255, 160, 40, 0.22), rgba(255, 100, 40, 0.12));
}

.domain-teaser__badge-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 236, 180, 0.92);
}

.domain-teaser__badge-score {
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1;
}

.domain-teaser__badge-score strong {
  font-size: 1.7rem;
  font-weight: 800;
  color: #ffc900;
}

.domain-teaser__badge-max {
  font-size: 0.86rem;
  font-weight: 700;
  color: rgba(255, 220, 140, 0.9);
}

.domain-teaser__badge-verdict {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #1a1200;
  background: linear-gradient(135deg, #ffd24a, #ff9a2e);
}

.domain-teaser__hint {
  margin: 0;
  color: var(--text-muted, #a3a3a3);
  font-size: 0.9rem;
  line-height: 1.45;
}

.domain-report__eyebrow {
  color: #ff90e8;
  font-size: 0.85rem;
}

.domain-report__disclaimer {
  color: var(--text-muted, #a3a3a3);
  font-size: 0.9rem;
}

.domain-report__hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
}

.domain-report__domain {
  margin: 0 0 4px;
  color: #ff90e8;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.domain-report__oneliner {
  margin: 8px 0 0;
  font-size: 1.05rem;
  line-height: 1.5;
}

.domain-report__scorecard {
  min-width: 120px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 201, 0, 0.35);
  border-radius: 16px;
  background: rgba(255, 201, 0, 0.06);
  text-align: center;
}

.domain-report__score-label {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted, #a3a3a3);
}

.domain-report__score-value {
  margin: 4px 0;
  font-size: 2rem;
  font-weight: 800;
  color: #ffc900;
  line-height: 1;
}

.domain-report__score-verdict {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
}

.domain-report__engine {
  margin: 0;
  font-size: 0.82rem;
  color: #5eead4;
  line-height: 1.4;
}

.domain-report__section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.domain-report__section-head h2 {
  margin: 0;
}

.domain-report__badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.domain-report__badge.is-good {
  color: #5eead4;
  border-color: rgba(94, 234, 212, 0.35);
  background: rgba(94, 234, 212, 0.08);
}

.domain-report__badge.is-mid {
  color: #ffc900;
  border-color: rgba(255, 201, 0, 0.35);
  background: rgba(255, 201, 0, 0.08);
}

.domain-report__badge.is-warn {
  color: #ff8f8f;
  border-color: rgba(255, 143, 143, 0.35);
  background: rgba(255, 143, 143, 0.08);
}

.domain-report__subhead {
  margin: 14px 0 6px;
  font-size: 0.92rem;
  font-weight: 800;
}

.domain-report__list,
.domain-report__steps {
  margin: 0;
  padding-left: 1.15rem;
  line-height: 1.6;
}

.domain-report__muted {
  margin: 8px 0 0;
  color: var(--text-muted, #a3a3a3);
  font-size: 0.9rem;
}

.domain-report__snapshot {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 0;
}

.domain-report__snapshot dt {
  color: var(--text-muted, #a3a3a3);
  font-size: 0.78rem;
  margin-bottom: 4px;
}

.domain-report__snapshot dd {
  margin: 0;
  font-weight: 700;
}

.domain-report__price-meta {
  margin: 0 0 8px;
  color: var(--text-muted, #a3a3a3);
}

.domain-report__scenarios {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.domain-report__scenario {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.15);
}

.domain-report__scenario h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.domain-report__risks {
  display: grid;
  gap: 8px;
}

.domain-report__risk {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.domain-report__risk.is-good {
  border-color: rgba(94, 234, 212, 0.28);
}

.domain-report__risk.is-mid {
  border-color: rgba(255, 201, 0, 0.28);
}

.domain-report__risk.is-warn {
  border-color: rgba(255, 143, 143, 0.28);
}

.domain-report__risk-item {
  margin: 0 0 4px;
  font-weight: 800;
}

.domain-report__risk-note {
  margin: 0;
  color: var(--text-muted, #a3a3a3);
  font-size: 0.9rem;
}

.domain-report__providers {
  display: grid;
  gap: 10px;
}

.domain-report__providers blockquote {
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid #ff90e8;
  background: rgba(255, 144, 232, 0.06);
  border-radius: 0 12px 12px 0;
}

.domain-report__providers blockquote p {
  margin: 6px 0 0;
  line-height: 1.55;
}

.domain-report__footer {
  margin-top: 4px;
  color: var(--text-muted, #a3a3a3);
  font-size: 0.78rem;
}

.domain-report__range {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffc900;
}

@media (max-width: 640px) {
  .domain-report__hero {
    grid-template-columns: 1fr;
  }

  .domain-report__scorecard {
    width: fit-content;
  }
}

.domain-detail__actions,
.domain-report__card--proposal .nb-btn {
  margin-top: 8px;
}

.domain-report__card--proposal .nb-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.domain-proposal-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0 4px;
}

.domain-proposal-links .nb-btn--demo {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.proposal-handover--domain .proposal-handover__item--domain .handover-report__mark {
  font-size: 0.85rem;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .domain-dns-row {
    flex-direction: column;
  }

  .domain-row {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
  }

  .domain-row__desc {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .domain-row__aside {
    justify-content: space-between;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
}
