/* KeverHosting — domain registration / transfer page
   Builds on vps-modern.css tokens, reveal, benefits, FAQ. */

body.kh-domain {
  --kh-accent: #0f1b46;
  --kh-accent-2: #1a2d6b;
  --kh-highlight: #f7bb37;
}

body.kh-domain .domain-bg-a { background: var(--kh-surface) !important; }
body.kh-domain .domain-bg-b { background: #fff !important; }

/* ============ Hero (aligned with hosting product pages) ============ */
body.kh-domain .domain-hero.slider-1-bg.inside h1 {
  font-size: clamp(2rem, 4vw, 2.6rem) !important;
  line-height: 1.15;
  margin-bottom: 14px;
}
body.kh-domain .domain-hero.slider-1-bg.inside h2 {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  font-size: 0.98rem !important;
  line-height: 1.55;
  font-weight: 400;
  color: #37415c;
}
body.kh-domain .domain-hero.slider-1-bg.inside h1 span,
body.kh-domain .domain-hero.slider-1-bg.inside h2 span {
  font-weight: 600;
  color: inherit;
  box-shadow: none;
  background: none;
}

.domain-hero-search {
  max-width: 640px;
  margin: 26px auto 0;
}
.domain-hero-search form.domainsearch {
  display: flex;
  gap: 8px;
  margin: 0;
}
body.kh-domain .domain-hero-search input.domain-input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 12px 16px;
  border: 1px solid rgba(15, 27, 70, 0.12);
  border-radius: 12px;
  background: #fff;
  color: var(--kh-ink);
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(15, 27, 70, 0.08);
}
body.kh-domain .domain-hero-search input.domain-input:focus {
  outline: none;
  border-color: var(--kh-accent);
  box-shadow: 0 0 0 3px rgba(15, 27, 70, 0.1);
}
body.kh-domain .domain-hero-search button {
  height: 52px;
  padding: 0 24px;
  border: none;
  border-radius: 12px;
  background: var(--kh-highlight);
  color: #0f1b46;
  font-size: 0.98rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.25s ease, transform 0.2s ease;
}
body.kh-domain .domain-hero-search button:hover {
  background: #ffd15c;
  transform: translateY(-1px);
}

.domain-tld-strip {
  margin: 22px auto 0;
  max-width: min(960px, 100%);
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.domain-tld-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: domainTldMarquee 42s linear infinite;
  will-change: transform;
}
.domain-tld-strip:hover .domain-tld-track,
.domain-tld-strip:focus-within .domain-tld-track {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .domain-tld-track { animation: none; }
  .domain-tld-strip {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .domain-tld-track {
    width: 100%;
  }
  .domain-tld-list[aria-hidden="true"] { display: none; }
  .domain-tld-list {
    flex-wrap: nowrap;
    overflow: visible;
    justify-content: flex-start;
    padding: 4px 8px;
  }
}
@keyframes domainTldMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.domain-tld-list {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 4px 8px;
}
.domain-tld-chip {
  flex: 0 0 auto;
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 27, 70, 0.08);
  box-shadow: 0 2px 10px rgba(15, 27, 70, 0.05);
  font-size: 0.86rem;
  color: var(--kh-ink);
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.domain-tld-chip.is-promo {
  border-color: rgba(247, 187, 55, 0.55);
  background: linear-gradient(180deg, #fffdf6 0%, #fff 100%);
  box-shadow: 0 4px 14px rgba(247, 187, 55, 0.18);
}
.domain-tld-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 27, 70, 0.1);
}
.domain-tld-badge {
  position: absolute;
  top: -8px;
  left: 12px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--kh-highlight);
  color: #0f1b46;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.5;
}
.domain-tld-style {
  font-weight: 700;
  color: var(--kh-ink);
}
.domain-tld-amount {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  color: var(--kh-muted);
  font-weight: 600;
}
.domain-tld-chip.is-promo .domain-tld-amount {
  color: #8a6a10;
}

.domain-hero-foot {
  margin-top: 14px;
  text-align: center;
}
.domain-hero-foot a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--kh-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.domain-hero-foot a:hover { color: var(--kh-accent-2); }
.domain-hero-note {
  display: block;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--kh-muted);
}

.domain-hero-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 26px auto 0;
  padding: 0;
  max-width: 900px;
}
.domain-hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 27, 70, 0.09);
  box-shadow: 0 2px 10px rgba(15, 27, 70, 0.05);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  color: #22305c;
}
.domain-hero-facts img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 18px;
}

/* ============ Trust ============ */
.domain-trust {
  background: var(--kh-accent);
  padding: 28px 0;
}
.domain-trust-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 12px;
  margin: 0;
  padding: 0;
}
@media (min-width: 768px) {
  .domain-trust-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .domain-trust-list li + li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: rgba(255, 255, 255, 0.16);
  }
}
.domain-trust-list li {
  text-align: center;
  position: relative;
}
.domain-trust-list strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--kh-highlight);
  line-height: 1.2;
}
.domain-trust-list span {
  display: block;
  margin-top: 4px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.35;
}

/* ============ Steps ============ */
.domain-steps {
  padding: 70px 0 64px;
}
.domain-steps .section-title { margin-bottom: 34px !important; }
.domain-steps-grid {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  counter-reset: none;
}
@media (min-width: 768px) {
  .domain-steps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
}
.domain-step {
  position: relative;
  padding: 26px 22px 24px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--kh-border);
  box-shadow: 0 2px 12px rgba(15, 27, 70, 0.04);
}
.domain-bg-b .domain-step { background: var(--kh-surface); }
.domain-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--kh-accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}
.domain-step h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--kh-ink);
}
.domain-step p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--kh-muted);
}

/* Benefits */
body.kh-domain .domain-benefits .vps-benefit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 992px) {
  body.kh-domain .domain-benefits .vps-benefit-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 575px) {
  body.kh-domain .domain-benefits .vps-benefit-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
body.kh-domain .domain-benefits .vps-benefit-card {
  padding: 26px 22px;
}
body.kh-domain .domain-benefits .benefit-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(15, 27, 70, 0.05);
  margin-bottom: 16px;
}
body.kh-domain .domain-benefits .benefit-icon img {
  width: 32px;
  height: 32px;
}

/* ============ DNS board ============ */
.domain-dns {
  padding: 70px 0;
}
.domain-dns-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 40px 52px;
  align-items: center;
}
.domain-dns .section-title {
  text-align: left;
  margin-bottom: 22px !important;
}
.domain-dns .section-title h2,
.domain-dns .section-title p {
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}
.domain-dns-points {
  list-style: none;
  margin: 0;
  padding: 0;
}
.domain-dns-points li {
  padding: 14px 0;
  border-bottom: 1px solid var(--kh-border);
}
.domain-dns-points li:first-child { padding-top: 0; }
.domain-dns-points li:last-child { border-bottom: none; padding-bottom: 0; }
.domain-dns-points h3 {
  margin: 0 0 5px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--kh-ink);
}
.domain-dns-points p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--kh-muted);
}

.domain-dns-board {
  background: var(--kh-accent);
  border-radius: 18px;
  padding: 18px 18px 16px;
  box-shadow: 0 22px 50px rgba(15, 27, 70, 0.28);
  color: #fff;
  overflow: hidden;
}
.domain-dns-board-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.domain-dns-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}
.domain-dns-dot:nth-child(1) { background: #ff5f57; }
.domain-dns-dot:nth-child(2) { background: #febc2e; }
.domain-dns-dot:nth-child(3) { background: #28c840; }
.domain-dns-board-head em {
  margin-left: 8px;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
}
.domain-dns-records {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.domain-dns-records li {
  display: grid;
  grid-template-columns: 56px minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  opacity: 0;
  transform: translateY(8px);
  animation: domainChipIn 0.5s var(--kh-ease, cubic-bezier(0.22, 1, 0.36, 1)) forwards;
  animation-delay: var(--kh-delay, 0ms);
}
@keyframes domainChipIn {
  to { opacity: 1; transform: translateY(0); }
}
.dns-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--kh-highlight);
  color: #0f1b46;
  font-weight: 700;
  font-size: 0.7rem;
}
.dns-name { color: rgba(255, 255, 255, 0.78); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dns-value { color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============ Transfer ============ */
.domain-transfer {
  padding: 70px 0;
}
.domain-transfer .section-title {
  margin-bottom: 36px !important;
}
.domain-transfer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px 48px;
  align-items: center;
}
.domain-transfer-layout.is-reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
}
.domain-transfer-layout.is-reverse .domain-transfer-media { order: 2; }
.domain-transfer-layout.is-reverse .domain-transfer-copy { order: 1; }

.domain-transfer-media {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}
.domain-transfer-media img {
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  height: auto;
}
.domain-transfer-media figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--kh-muted);
}

.domain-transfer-points {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
.domain-transfer-points li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--kh-border);
}
.domain-transfer-points li:first-child { padding-top: 0; }
.domain-transfer-points li:last-child { border-bottom: none; }
.domain-transfer-idx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(247, 187, 55, 0.22);
  color: var(--kh-ink);
  font-size: 0.85rem;
  font-weight: 700;
}
.domain-transfer-points h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--kh-ink);
}
.domain-transfer-points p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--kh-muted);
}

.domain-transfer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 12px;
  background: var(--kh-accent);
  color: #fff !important;
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.25s ease, transform 0.2s ease;
}
.domain-transfer-cta:hover {
  background: var(--kh-accent-2);
  color: #fff !important;
  transform: translateY(-2px);
}
.domain-transfer-cta-note {
  display: block;
  margin-top: 12px;
  font-size: 0.84rem;
  color: var(--kh-muted);
  line-height: 1.45;
}

/* ============ Next / cross-sell ============ */
.domain-next {
  padding: 66px 0;
}
.domain-next .section-title { margin-bottom: 28px !important; }
.domain-next-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
@media (min-width: 768px) {
  .domain-next-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.domain-next-link {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 18px;
  gap: 14px;
  align-items: center;
  padding: 18px 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--kh-border);
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.25s var(--kh-ease, cubic-bezier(0.22, 1, 0.36, 1)), box-shadow 0.25s ease, border-color 0.25s ease;
}
.domain-bg-b .domain-next-link { background: var(--kh-surface); }
.domain-next-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 27, 70, 0.1);
  border-color: rgba(247, 187, 55, 0.55);
}
.domain-next-link img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.domain-next-body strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--kh-ink);
  margin-bottom: 3px;
}
.domain-next-body em {
  display: block;
  font-style: normal;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--kh-muted);
}
.domain-next-arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--kh-ink);
  border-bottom: 2px solid var(--kh-ink);
  transform: rotate(-45deg);
  opacity: 0.45;
}

@media (max-width: 991px) {
  .domain-dns-layout,
  .domain-transfer-layout,
  .domain-transfer-layout.is-reverse {
    grid-template-columns: minmax(0, 1fr);
  }
  .domain-transfer-layout.is-reverse .domain-transfer-media,
  .domain-transfer-layout.is-reverse .domain-transfer-copy {
    order: unset;
  }
  .domain-dns .section-title { text-align: center; }
  .domain-dns .section-title h2,
  .domain-dns .section-title p {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 575px) {
  .domain-hero-search form.domainsearch { flex-direction: column; }
  body.kh-domain .domain-hero-search button { width: 100%; }
  .domain-hero-facts li { font-size: 0.78rem; padding: 6px 12px; }
  .domain-dns-records li {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .domain-dns-records .dns-value {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .domain-dns-records li {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
