/* =========================================================
   InstanHosting — domains.css
   Halaman domain: pencarian, TLD, daftar domain
   ========================================================= */

/* ---------- Hero ---------- */
.domain-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--nav-h) + clamp(28px, 4vw, 48px)) 0 clamp(36px, 5vw, 56px);
  background:
    radial-gradient(780px 480px at 88% -12%, rgba(42, 91, 255, 0.18), transparent 64%),
    radial-gradient(560px 400px at 2% 30%, rgba(18, 194, 233, 0.14), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, #f8faff 58%, #f2f7fe 100%);
  border-bottom: 1px solid var(--line);
}
.domain-hero .hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(10, 27, 51, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 27, 51, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 76% at 50% 14%, #000 0%, rgba(0, 0, 0, 0.4) 58%, transparent 84%);
}
.domain-hero .orb--a {
  position: absolute;
  z-index: -1;
  top: 0;
  right: -110px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(42, 91, 255, 0.16);
  filter: blur(70px);
}
.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 0.78rem;
  color: var(--muted);
}
.crumb a { font-weight: 600; color: var(--brand-700); }
.crumb a:hover { text-decoration: underline; }
.crumb i { font-size: 0.65rem; opacity: 0.6; }
.crumb span { color: var(--muted); }

.domain-hero-copy { max-width: 700px; }
.domain-hero-copy h1 { max-width: 22ch; margin-top: 6px; font-size: clamp(2rem, 3.8vw, 3.05rem); }
.domain-hero-copy .lede { margin-top: 14px; max-width: 56ch; }

/* Search form */
.domain-search {
  display: flex;
  gap: 10px;
  max-width: 760px;
  margin-top: 28px;
  padding: 10px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 50px -34px rgba(10, 27, 51, 0.45);
}
.ds-input { position: relative; display: flex; align-items: center; flex: 1; min-width: 0; }
.ds-input > i {
  position: absolute;
  left: 14px;
  font-size: 1.05rem;
  color: var(--brand);
  pointer-events: none;
}
.ds-input input {
  width: 100%;
  padding: 14px 136px 14px 42px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--surface-soft);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.ds-input input::placeholder { color: #9aabc0; }
.ds-input input:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(42, 91, 255, 0.12);
}
.domain-search .btn-ih { flex: none; }

/* Pemilih ekstensi (TLD) */
.ds-tld {
  position: absolute;
  top: 50%;
  right: 6px;
  display: flex;
  align-items: center;
  padding-left: 10px;
  border-left: 1px solid var(--line);
  transform: translateY(-50%);
}
.ds-tld select {
  appearance: none;
  padding: 7px 24px 7px 8px;
  border: 0;
  border-radius: 8px;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231c46e0' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 12px;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-700);
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.ds-tld select:hover { background-color: rgba(42, 91, 255, 0.07); }
.ds-tld select:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}
.ds-help {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--muted);
}
.ds-help code {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(10, 27, 51, 0.06);
  font-size: 0.75rem;
  color: var(--ink-2);
}

/* Search results */
.domain-results {
  max-width: 760px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--sh-md);
}
.domain-results[hidden] { display: none; }
.dr-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.dr-head b { display: block; font-size: 0.92rem; color: var(--ink); }
.dr-head span { display: block; font-size: 0.75rem; color: var(--muted); }
.dr-demo {
  flex: none;
  padding: 3px 9px;
  border: 1px solid rgba(42, 91, 255, 0.2);
  border-radius: 999px;
  background: rgba(42, 91, 255, 0.07);
  font-size: 0.62rem !important;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-700) !important;
}
.dr-list { display: grid; gap: 8px; margin-top: 12px; }
.dr-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfdff;
  transition: border-color 0.2s ease;
}
.dr-item:hover { border-color: rgba(42, 91, 255, 0.28); }
.dr-name {
  flex: 1;
  min-width: 160px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.dr-price {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
}
.dr-price small { display: block; font-size: 0.68rem; font-weight: 500; color: var(--muted); }

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}
.badge-status i { font-size: 0.62rem; }
.badge-status.is-active { background: rgba(14, 159, 110, 0.12); color: #0b7a55; }
.badge-status.is-warning { background: rgba(245, 158, 11, 0.16); color: #96600a; }
.badge-status.is-expired { background: rgba(220, 38, 38, 0.1); color: #a52626; }
.dr-item .btn-ih { flex: none; }
.dr-item .btn-ih:disabled,
.dr-item .dr-unavailable {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f2f5fa;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  cursor: not-allowed;
}

.domain-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px dashed var(--line-2);
}
.domain-perks span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.81rem;
  font-weight: 600;
  color: var(--ink-2);
}
.domain-perks i { color: var(--brand); }

/* ---------- Popular TLD cards ---------- */
.popular-section {
  padding-block: clamp(32px, 3.6vw, 48px) 0;
  background: #fff;
}
.tld-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.tld-card {
  display: block;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, #fff, #fbfdff);
  color: inherit;
  transition: transform 0.3s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease;
}
.tld-card:hover {
  transform: translateY(-4px);
  border-color: rgba(42, 91, 255, 0.28);
  box-shadow: var(--sh-sm);
  color: inherit;
}
.tld-card:hover .tld-name { color: var(--brand); }
.tld-card:active { transform: translateY(-1px); }
.tld-name {
  display: block;
  margin-bottom: 8px;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand-700);
}
.tld-card b {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.tld-note { display: block; margin-top: 3px; font-size: 0.72rem; color: var(--muted); }

/* ---------- TLD price list ---------- */
.tld-section {
  padding-block: clamp(26px, 3vw, 38px) clamp(34px, 4vw, 54px);
  background: #fff;
}
.tld-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 20px;
  margin-bottom: 20px;
}
.tld-head h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.tld-sub { margin-top: 6px; font-size: 0.86rem; color: var(--muted); }
.tld-meta {
  flex: none;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfdff;
  font-size: 0.74rem;
  color: var(--muted);
}

.tld-table-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--sh-sm);
}
.tld-table-wrap {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(10, 27, 51, 0.16) transparent;
}
.tld-table-wrap::-webkit-scrollbar { height: 6px; }
.tld-table-wrap::-webkit-scrollbar-track { background: transparent; }
.tld-table-wrap::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(10, 27, 51, 0.14); }

.tld-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.tld-table th {
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  background: #fbfdff;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}
.tld-table th:first-child { text-align: left; }
.tld-table th.tld-action-col { text-align: right; }
.tld-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.tld-table tbody tr:last-child td { border-bottom: 0; }
.tld-table tbody tr { transition: background 0.2s ease; }
.tld-table tbody tr:hover { background: #fafcff; }
.tld-table tbody tr.is-popular { background: linear-gradient(90deg, rgba(42, 91, 255, 0.05), transparent 62%); }

.tld-ext { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tld-ext .ext {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand-700);
}
.tld-ext small { font-size: 0.74rem; color: var(--muted); }
.tld-flags { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.tld-ext .tld-flags { margin-bottom: 0; }
.dr-name .tld-flags { margin: 0 0 0 6px; vertical-align: middle; }
.tld-flag {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tld-flag--promo { background: #fff4e5; color: #9a6700; }
.tld-flag--pick { background: rgba(42, 91, 255, 0.1); color: var(--brand-700); }
.tld-flag--hot { background: #e8f8ef; color: #0d7a45; }
.tld-price {
  text-align: right;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}
.tld-action { text-align: right; white-space: nowrap; }
.tld-action .btn-ih { padding: 7px 12px; font-size: 0.76rem; }
.tld-action .btn-ih i { font-size: 0.78rem; }

.tld-footnote {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  background: #fbfdff;
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--muted);
}
.tld-footnote i { margin-top: 2px; color: var(--brand); }

.tld-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.tld-tools input {
  width: 148px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: var(--font);
  font-size: 0.84rem;
  color: var(--ink);
}
.tld-tools input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(42, 91, 255, 0.12);
}
.tld-pages { margin-top: 18px; }

/* ---------- CTA ---------- */
.domain-cta-section { padding-top: 0; }
.domain-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(26px, 3.4vw, 38px) clamp(22px, 3.6vw, 42px);
  border-radius: var(--r-2xl);
  background:
    radial-gradient(520px 260px at 88% 0%, rgba(18, 194, 233, 0.3), transparent 66%),
    linear-gradient(150deg, #0d1e3a 0%, #071120 60%, #040c18 100%);
  box-shadow: 0 40px 80px -54px rgba(7, 17, 32, 0.9);
  overflow: hidden;
}
.domain-cta h2 { color: #fff; font-size: clamp(1.25rem, 2vw, 1.6rem); }
.domain-cta p { margin-top: 6px; font-size: 0.88rem; color: var(--on-dark-dim); }
.domain-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 1099px) {
  .tld-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
  .domain-search { flex-direction: column; }
  .domain-search .btn-ih { width: 100%; }
}

@media (max-width: 767px) {
  .tld-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tld-head { flex-direction: column; align-items: flex-start; }
  .tld-table,
  .tld-table tbody,
  .tld-table tr,
  .tld-table td { display: block; width: 100%; }
  .tld-table thead { display: none; }
  .tld-table tbody { padding: 12px; }
  .tld-table tbody tr {
    margin-bottom: 10px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: #fff;
  }
  .tld-table tbody tr:last-child { margin-bottom: 0; }
  .tld-table tbody tr.is-popular {
    background: linear-gradient(140deg, rgba(42, 91, 255, 0.06), #fff 70%);
    border-color: rgba(42, 91, 255, 0.22);
  }
  .tld-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 0;
    text-align: right;
  }
  .tld-table td::before {
    content: attr(data-label);
    flex: none;
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .tld-table td:first-child {
    display: block;
    padding: 0 0 10px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--line);
    text-align: left;
  }
  .tld-table td:first-child::before { display: none; }
  .tld-action { justify-content: flex-end; padding-top: 10px; }
  .tld-action .btn-ih { width: auto; }
  .tld-footnote { padding: 13px 16px; }

  .domain-cta { flex-direction: column; align-items: flex-start; }
  .domain-cta-actions { width: 100%; }
  .domain-cta-actions .btn-ih { flex: 1 1 auto; }

  .dr-item .btn-ih { width: 100%; }
}

@media (max-width: 479px) {
  .domain-search { padding: 8px; border-radius: 15px; }
  .ds-input input { padding: 13px 118px 13px 40px; font-size: 0.9rem; }
  .ds-tld { padding-left: 7px; }
  .ds-tld select { padding: 7px 22px 7px 7px; font-size: 0.8rem; background-size: 11px; }
  .tld-grid { gap: 10px; }
  .tld-card { padding: 15px 14px; }
}
