/* NameHippo Premium UI Layer (v12 - Light)
 * Unique, high-end, trust-forward look.
 * This is a LIGHT theme to keep readability strong.
 * Load AFTER site.css and ux-upgrade.css.
 */

:root{
  --nh-bg: #f7f8fb;
  --nh-bg-2: #ffffff;
  --nh-surface: #ffffff;
  --nh-surface-2: #fbfcfe;
  --nh-stroke: rgba(15, 23, 42, .10);
  --nh-stroke-strong: rgba(15, 23, 42, .16);
  --nh-text: #0f172a;      /* slate-900 */
  --nh-muted: #475569;     /* slate-600 */
  --nh-muted-2: #64748b;   /* slate-500 */
  --nh-accent: #0ea5a4;    /* teal */
  --nh-accent-2: #635bff;  /* indigo-violet */
  --nh-good: #16a34a;
  --nh-warn: #b45309;
  --nh-danger: #dc2626;

  --nh-radius: 18px;
  --nh-radius-sm: 14px;
  --nh-shadow: 0 14px 36px rgba(15, 23, 42, .10);
  --nh-shadow-soft: 0 10px 26px rgba(15, 23, 42, .08);
}

html, body{ background: var(--nh-bg); color: var(--nh-text); }
body{
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  letter-spacing: .1px;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography polish */
h1,h2,h3,h4,h5,h6{ color: var(--nh-text); letter-spacing: .1px; }
h1{ font-weight: 900; }
h2{ font-weight: 900; }
h3,h4{ font-weight: 800; }


a{ color: #0f766e; }
a:hover{ color: #115e59; }

/* Navbar: clean, premium, readable */
.navbar{
  background: rgba(255,255,255,.92) !important;
  border-bottom: 1px solid var(--nh-stroke) !important;
  backdrop-filter: blur(10px);
}
.navbar .navbar-brand{ font-weight: 900; letter-spacing: .3px; color: var(--nh-text) !important; }
.navbar .nav-link{ color: rgba(15,23,42,.78) !important; font-weight: 600; }
.navbar .nav-link:hover{ color: rgba(15,23,42,.95) !important; }

/* Trust proof strip */
.nh-proofstrip{
  border-top: 1px solid var(--nh-stroke);
  border-bottom: 1px solid var(--nh-stroke);
  background: linear-gradient(90deg, rgba(14,165,164,.08), rgba(99,91,255,.08));
}
.nh-proofstrip .nh-proof-inner{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items:center;
  justify-content:center;
  padding: 10px 8px;
  color: rgba(15,23,42,.80);
  font-size: 13px;
  font-weight: 600;
}
.nh-proofstrip .nh-dot{ width:6px;height:6px;border-radius:99px;background: var(--nh-accent); opacity:.9; }
.nh-proofstrip .nh-proof-pill{
  display:flex; align-items:center; gap:10px;
  padding: 6px 12px;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 999px;
  background: rgba(255,255,255,.75);
}

/* Cards: curated asset feel */
.card{
  background: var(--nh-surface);
  border: 1px solid var(--nh-stroke);
  border-radius: var(--nh-radius);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .08);
}
.card-header{
  border-bottom: 1px solid rgba(15,23,42,.08);
  background: linear-gradient(180deg, rgba(251,252,254,.95), rgba(255,255,255,.85));
  border-top-left-radius: var(--nh-radius);
  border-top-right-radius: var(--nh-radius);
}

/* Badges */
.nh-badge{
  display:inline-flex; align-items:center; gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(15,23,42,.03);
  color: rgba(15,23,42,.80);
  font-size: 12px;
  font-weight: 700;
}
.nh-badge--verified{ border-color: rgba(22,163,74,.22); background: rgba(22,163,74,.08); color: #14532d; }
.nh-badge--escrow{ border-color: rgba(14,165,164,.25); background: rgba(14,165,164,.08); color: #134e4a; }

/* Buttons */
.btn{ border-radius: 14px; padding: .70rem 1.05rem; font-weight: 800; }
.btn-sm{ border-radius: 12px; padding: .46rem .82rem; font-weight: 800; }
.btn-primary{
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--nh-accent), var(--nh-accent-2));
  box-shadow: 0 12px 24px rgba(14,165,164,.18);
}
.btn-primary:hover{ filter: brightness(1.02); transform: translateY(-1px); }
.btn-outline-primary{
  color: rgba(15,23,42,.85);
  border-color: rgba(15,23,42,.20);
}
.btn-outline-primary:hover{
  background: rgba(15,23,42,.04);
  border-color: rgba(15,23,42,.28);
  color: rgba(15,23,42,.92);
}

/* Forms: keep readable */
.form-label{ color: rgba(15,23,42,.80); font-weight: 800; }
.form-control, .form-select{
  background: #fff;
  border: 1px solid rgba(15,23,42,.14);
  color: rgba(15,23,42,.92);
  border-radius: 14px;
  padding: .78rem .90rem;
}
.form-control::placeholder{ color: rgba(100,116,139,.85); }
.form-control:focus, .form-select:focus{
  border-color: rgba(14,165,164,.55);
  box-shadow: 0 0 0 .22rem rgba(14,165,164,.14);
}

/* Improve contrast for small helper text in light UI */
.small, small{ color: rgba(71,85,105,.92); }
.small, .text-muted{ color: rgba(100,116,139,.95) !important; }

/* Tables (admin polish) */
.table{ color: rgba(15,23,42,.92); }
.table thead th{ color: rgba(15,23,42,.70); border-color: rgba(15,23,42,.10) !important; }
.table td, .table th{ border-color: rgba(15,23,42,.08) !important; }
.table-hover tbody tr:hover{ background: rgba(15,23,42,.02); }

/* Hero helper */
.nh-hero{
  position: relative;
  padding: 56px 0 26px;
  background: radial-gradient(850px 380px at 15% 10%, rgba(14,165,164,.14), transparent 60%),
              radial-gradient(720px 360px at 85% 0%, rgba(99,91,255,.12), transparent 55%);
}
.nh-hero h1{ font-weight: 900; letter-spacing: .2px; color: var(--nh-text); }

/* Footer */
footer, .footer{
  border-top: 1px solid var(--nh-stroke);
  background: rgba(255,255,255,.85);
}

/* intl-tel-input dropdown visibility (light) */
.iti{ width: 100%; }
.iti__country-list{
  z-index: 99999;
  background: #fff;
  border: 1px solid rgba(15,23,42,.12);
  box-shadow: var(--nh-shadow);
}
.iti__country{ color: rgba(15,23,42,.88); }
.iti__country:hover{ background: rgba(15,23,42,.04); }
.iti__selected-flag{ border-radius: 14px 0 0 14px; }

/* Utility */
.nh-divider{ height:1px; background: rgba(15,23,42,.10); }

/* --- Alignment fixes + consistency overrides (v13) --- */
/* Proof strip markup compatibility */
.nh-proofstrip__inner{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items:center;
  justify-content:center;
  padding: 10px 8px;
  color: rgba(15,23,42,.82);
  font-size: 13px;
  font-weight: 700;
}
.nh-proof{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
}
.nh-proof i{ color: var(--nh-accent); }

/* Remove remaining 'black card' feel in search cards */
.nh-card-media{
  background: linear-gradient(135deg, rgba(14,165,164,.12), rgba(99,91,255,.10)) !important;
}
.nh-card-grad{
  background: radial-gradient(80% 70% at 50% 0%, rgba(255,255,255,.65), rgba(255,255,255,0) 70%) !important;
}

/* Home/featured cards - logo cover */
.nh-card-logo-wrap{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.nh-card-logo-wrap img{
  width:100%;
  height:100%;
  object-fit:contain;
  filter: drop-shadow(0 12px 24px rgba(15,23,42,.22));
}
.domain-logo-preview img{
  filter: drop-shadow(0 10px 18px rgba(2,6,23,.12)) !important;
}

/* -------------------------------------------------
   Asset Card System (Search + Domain Detail parity)
-------------------------------------------------- */
.nh-domain-title{font-weight: 900; font-size: 18px; letter-spacing: .1px; color: var(--nh-text); line-height:1.15}
.nh-domain-title a{color: inherit}
.nh-domain-title a:hover{color: rgba(15,23,42,.92)}
.nh-domain-sub{font-size: 13px; font-weight: 700; color: rgba(71,85,105,.90)}
.nh-price{font-weight: 900; font-size: 20px; color: rgba(2,6,23,.92)}
.nh-desc{font-size: 13px; color: rgba(71,85,105,.92)}

.nh-chip-row{display:flex; flex-wrap:wrap; gap:8px;}
.nh-chip{
  display:inline-flex; align-items:center; gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.80);
  color: rgba(15,23,42,.78);
  font-size: 12px;
  font-weight: 800;
}

.nh-tags{display:flex; flex-wrap:wrap; gap:8px;}
.nh-tag{
  display:inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(99,91,255,.20);
  background: rgba(99,91,255,.08);
  color: rgba(30,41,59,.88);
  font-size: 12px;
  font-weight: 800;
}

.nh-domain-card .badge{
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 800;
}

/* Domain Detail support classes (kept consistent after removing inline styles) */
.sticky-cta{ position: sticky; top: 96px; }
.variant-card{ border:1px solid rgba(15,23,42,.10); background: #fff; box-shadow: var(--nh-shadow-soft); transition: transform .15s ease, box-shadow .15s ease; }
.variant-card:hover{ transform: translateY(-2px); box-shadow: var(--nh-shadow); }

.trust-badge-item{
  display:flex; align-items:flex-start; gap:12px;
  padding: 14px 14px;
  border:1px solid rgba(15,23,42,.10);
  border-radius: 16px;
  background: rgba(255,255,255,.90);
  box-shadow: 0 8px 18px rgba(15,23,42,.06);
}
.trust-badge-item .feature-icon{
  width:42px;height:42px;border-radius: 14px;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, rgba(14,165,164,.14), rgba(99,91,255,.12));
  border: 1px solid rgba(15,23,42,.08);
  color: rgba(15,23,42,.82);
  flex: 0 0 auto;
}


/* Make .btn-dark look premium (not black blocks) while preserving templates */
.btn-dark{
  border: 0 !important;
  color: #fff !important;
  background: linear-gradient(135deg, var(--nh-accent), var(--nh-accent-2)) !important;
  box-shadow: 0 14px 28px rgba(14,165,164,.18) !important;
}
.btn-dark:hover{
  filter: brightness(1.03);
  transform: translateY(-1px);
}

/* Active pill used on home categories */
.cat-pill.bg-dark{
  background: linear-gradient(135deg, var(--nh-accent), var(--nh-accent-2)) !important;
  border-color: transparent !important;
}

/* Improve legibility of muted text across sections */
.text-muted{ color: rgba(71,85,105,.92) !important; }


/* -------------------------------------------------
   Premium Card Media: cover-style logos (Atom-like)
-------------------------------------------------- */
.nh-card-media{
  position: relative;
  height: 200px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(15,23,42,.10);
  background-color: #fff;
  background-size: cover;
  background-position: center;
}
.nh-card-media::before{
  content: "";
  position:absolute; inset:0;
  background: radial-gradient(60% 70% at 30% 20%, rgba(255,255,255,.72), rgba(255,255,255,0) 65%),
              linear-gradient(180deg, rgba(2,6,23,.02), rgba(2,6,23,.06));
  pointer-events:none;
}

/* Center mark/wordmark overlay (keeps readability when cover image is busy) */
img.nh-card-logo{
  position:absolute;
  inset: 0;
  margin: auto;
  max-width: 82%;
  max-height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(2,6,23,.18));
  z-index: 2;
}
.nh-card-logo--text{
  position:absolute;
  inset: 0;
  margin: auto;
  display:flex;
  align-items:center;
  justify-content:center;
  width: 72%;
  height: 140px;
  border-radius: 18px;
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(15,23,42,.10);
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: rgba(2,6,23,.92);
  z-index: 2;
}

/* -------------------------------------------------
   Domain Detail Hero Carousel (futuristic, buyer-ready)
-------------------------------------------------- */
.nh-hero-carousel{
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 24px 64px rgba(2,6,23,.10);
}
.nh-hero-slide{
  height: 420px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.nh-hero-slide--alt{ filter: saturate(1.03) contrast(1.02); }
.nh-hero-glow{
  position:absolute; inset:-20%;
  background: radial-gradient(circle at 30% 20%, rgba(14,165,164,.22), transparent 55%),
              radial-gradient(circle at 70% 70%, rgba(99,91,255,.18), transparent 55%);
  pointer-events:none;
}
.nh-hero-lines{
  position:absolute; inset:0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0, rgba(255,255,255,.18) 1px, transparent 1px, transparent 26px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.12) 0, rgba(255,255,255,.12) 1px, transparent 1px, transparent 26px);
  opacity: .35;
  transform: perspective(700px) rotateX(58deg) translateY(18px);
  transform-origin: 50% 100%;
  animation: nhLinesDrift 10s linear infinite;
  pointer-events:none;
}
@keyframes nhLinesDrift{
  from{ background-position: 0 0, 0 0; }
  to{ background-position: 520px 0, 0 520px; }
}
.nh-hero-mark{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  padding: 28px;
}
.nh-hero-mark img{
  max-width: 80%;
  max-height: 170px;
  object-fit: contain;
  filter: drop-shadow(0 20px 34px rgba(2,6,23,.24));
}
.nh-hero-initials{
  width: 240px; height: 240px;
  border-radius: 999px;
  display:flex; align-items:center; justify-content:center;
  font-size: 82px; font-weight: 900;
  color: rgba(2,6,23,.92);
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 20px 44px rgba(2,6,23,.12);
}
.nh-hero-caption{
  position:absolute;
  left: 22px; right: 22px; bottom: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
}
.nh-hero-domain{ font-size: 18px; font-weight: 900; color: rgba(2,6,23,.92); }
.nh-hero-sub{ font-size: 13px; font-weight: 700; color: rgba(71,85,105,.92); }

/* Backward-compatible wrapper used on Home cards */
.domain-logo-preview{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index: 2;
}
.domain-logo-preview img{
  max-width: 86%;
  max-height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(2,6,23,.16));
}

/* --- Home: Trust Builders (Sold + Testimonials) --- */
.nh-trust-builders{
  background: linear-gradient(180deg,#ffffff,#f8fafc);
  border-top: 1px solid rgba(15,23,42,.08);
  border-bottom: 1px solid rgba(15,23,42,.08);
}
.nh-hscroll{
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 6px 2px 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.nh-hscroll::-webkit-scrollbar{height:10px}
.nh-hscroll::-webkit-scrollbar-thumb{background: rgba(15,23,42,.12); border-radius: 999px}
.nh-hscroll.is-dragging{cursor: grabbing}

/* Horizontal scroller buttons
   IMPORTANT: on Home these buttons live in the section header (inline).
   In earlier CSS they were `position:absolute`, which made them float over the hero.
   We keep a premium button look by default, and only apply overlay positioning
   when wrapped inside `.nh-hscroll-wrap`.
*/
.nh-hscroll-prev,
.nh-hscroll-next{
  position: static;
  inset: auto;
  transform: none;
  width: auto;
  height: auto;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.92);
  box-shadow: 0 12px 26px rgba(2,6,23,.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}

/* Optional overlay mode (if/when you want arrows floating over the scroller) */
.nh-hscroll-wrap{ position: relative; }
.nh-hscroll-wrap .nh-hscroll-prev,
.nh-hscroll-wrap .nh-hscroll-next{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  padding: 0;
  z-index: 6;
}
.nh-hscroll-wrap .nh-hscroll-prev{ left: -10px; }
.nh-hscroll-wrap .nh-hscroll-next{ right: -10px; }

@media (max-width: 576px){
  .nh-hscroll-wrap .nh-hscroll-prev,
  .nh-hscroll-wrap .nh-hscroll-next{ display:none; }
}
.nh-sold-card,
.nh-testimonial-card{
  flex: 0 0 auto;
  width: 340px;
  border-radius: 22px;
  border: 1px solid rgba(15,23,42,.10);
  background: #fff;
  box-shadow: 0 18px 38px rgba(2,6,23,.08);
  scroll-snap-align: start;
  overflow: hidden;
}
.nh-sold-media{
  height: 140px;
  background: linear-gradient(135deg, rgba(14,165,164,.14), rgba(99,91,255,.10));
  background-size: cover;
  background-position: center;
}
.nh-sold-body{padding: 14px 14px 16px}
.nh-pill{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(248,250,252,.9);
  color: rgba(2,6,23,.78);
}
.nh-testimonial-card{padding: 16px}
.nh-avatar{
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.10);
  background: linear-gradient(135deg, rgba(14,165,164,.16), rgba(99,91,255,.12));
  background-size: cover;
  background-position: center;
}
.nh-stars{color: rgba(2,6,23,.65)}

/* === NameHippo PATCH v4 (Sold ribbon + hide scrollbar) === */
.nh-trust-builders .nh-hscroll[data-hscroll-track="sold"]{
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none !important; /* Firefox */
}
.nh-trust-builders .nh-hscroll[data-hscroll-track="sold"]::-webkit-scrollbar{
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

.nh-sold-card .nh-sold-media{ position: relative; overflow: hidden; }
.nh-ribbon-sold{
  position: absolute;
  top: 14px;
  right: -44px;
  width: 160px;
  transform: rotate(45deg);
  z-index: 4;
  pointer-events: none;
}
.nh-ribbon-sold span{
  display: block;
  text-align: center;
  font-weight: 800;
  letter-spacing: .12em;
  font-size: 12px;
  padding: 7px 0;
  color: #fff;
  background: #e11d48; /* red */
  box-shadow: 0 10px 18px rgba(0,0,0,.18);
}
/* === /PATCH v4 === */
