/* NameHippo minimal site styles (extend as needed) */
#orb-container{min-height:420px; border-radius:16px; overflow:hidden; background:#eef2ff; border:1px solid rgba(15,23,42,.08);}
.orb-fallback{padding:16px; color:#0f172a;}
.orb-fallback a{color:#0f766e; text-decoration:none;}

/* Masonry Grid for Search Results */
.masonry-grid {
    column-count: 3;
    column-gap: 1.5rem;
}
@media (max-width: 992px) { .masonry-grid { column-count: 2; } }
@media (max-width: 576px) { .masonry-grid { column-count: 1; } }

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.masonry-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.domain-logo-preview {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    overflow: hidden;
}
.domain-logo-preview img {
    max-height: 80%;
    max-width: 80%;
    object-fit: contain;
}
.domain-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* High-end Polish */
body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.015em;
}

/* Glassmorphism & Cards */
.card {
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}
.card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Buttons */
.btn {
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    box-shadow: 0 4px 6px -1px rgba(5, 150, 105, 0.2);
}
.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 10px 15px -3px rgba(5, 150, 105, 0.3);
    transform: translateY(-2px);
}

/* Typography */
h1, .display-1, .display-2, .display-3, .display-4 {
    letter-spacing: -0.04em;
    font-weight: 800;
    color: #0f172a;
}

/* Smart Widget (Superseded by Chat Widget) */
.smart-capture-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1040; /* Lower than chat */
    background: white;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #f1f5f9;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.smart-capture-widget:hover {
    transform: translateY(-4px);
}

/* Chat Widget Overrides */
#nh-chat-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#nh-chat-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.5) !important;
}
#nh-chat-box {
    border: none !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    border-radius: 20px !important;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.025em;
    font-weight: 700;
}

.btn {
    font-weight: 600;
    letter-spacing: -0.01em;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-dark {
    background: #0f172a;
    border-color: #0f172a;
}
.btn-dark:hover {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

.card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
}
.shadow-sm {
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
}

.navbar {
    backdrop-filter: blur(12px);
    background-color: rgba(255,255,255,0.85) !important;
}
.nav-link {
    font-weight: 500;
    color: #475569 !important;
    transition: color 0.2s;
}
.nav-link:hover {
    color: #0f172a !important;
}

/* Featured Grid Polish */
.domain-card {
    border: 1px solid #f1f5f9;
}
.domain-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0,0,0,0.08) !important;
}

/* Modal Polish */
.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.modal-backdrop.show {
    opacity: 0.7;
    backdrop-filter: blur(4px);
}
.input-group-text {
    background: #f8f9fa;
    border-color: #dee2e6;
    font-weight: 600;
}

/* Transfer Center Status Timeline */
.list-group-item {
    border-color: #f1f5f9;
}
.spinner-border-sm {
    width: 1.25rem;
    height: 1.25rem;
}

/* ---------- NameHippo Premium Cards (Search) ---------- */
.nh-domain-card{border:1px solid #e2e8f0;border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 10px 25px rgba(2,6,23,.05);height:100%;display:flex;flex-direction:column;transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease}
.nh-domain-card:hover{transform:translateY(-2px);box-shadow:0 16px 40px rgba(2,6,23,.08);border-color:#cbd5e1}
.nh-card-media{position:relative;display:block;background:linear-gradient(135deg,#0f172a,#1e293b)}
.nh-card-grad{position:absolute;inset:0;background:radial-gradient(80% 70% at 50% 0%,rgba(255,255,255,.10),rgba(255,255,255,0) 65%)}
.nh-card-badges{position:absolute;top:12px;left:12px;display:flex;gap:8px;flex-wrap:wrap}
.nh-card-body{padding:16px 16px 18px 16px}
.nh-domain-title{font-weight:800;font-size:18px;line-height:1.1}
.nh-domain-title a{color:#0f172a}
.nh-domain-title a:hover{color:#1d4ed8}
.nh-domain-sub{font-size:13px}
.nh-price{font-weight:800;color:#0f172a;border:1px solid #e2e8f0;background:#f8fafc;padding:6px 10px;border-radius:12px;white-space:nowrap}
.nh-desc{color:#334155;font-size:13px;line-height:1.35;min-height:38px}
.nh-tags{display:flex;flex-wrap:wrap;gap:8px}
.nh-tag{display:inline-flex;align-items:center;padding:6px 10px;border:1px solid #e2e8f0;border-radius:999px;font-size:12px;color:#334155;background:#fff}
.nh-cta{display:flex;gap:10px}
.nh-cta .btn{flex:1}
.nh-trust{border-top:1px dashed #e2e8f0;padding-top:10px}

/* Ensure logo preview fits premium card */
.domain-logo-preview{height:150px;display:flex;align-items:center;justify-content:center;position:relative}
.domain-logo-preview img{max-height:120px;max-width:92%;object-fit:contain;filter:drop-shadow(0 8px 18px rgba(2,6,23,.35));image-rendering:auto}

/* --- UI fixes (navbar/notifications overlay) --- */
.navbar, .navbar-sticky, .nh-navbar{
  position: sticky;
  top: 0;
  z-index: 1200;
}

.navbar .dropdown-menu{
  z-index: 2000;
}

/* Chat and notification UIs should never sit behind hero sections */
.nh-chat-widget, .nh-chat-panel, .nh-notifications-popover, .nh-notification-panel{
  z-index: 2100;
}

/* =========================================================
   CHAT WIDGET MOBILE FIX ONLY
   ========================================================= */
@media (max-width: 576px) {
  .smart-capture-widget,
  #nh-chat-btn,
  #nh-chat-box {
    right: max(14px, env(safe-area-inset-right)) !important;
    bottom: max(14px, env(safe-area-inset-bottom)) !important;
    left: auto !important;
  }
}


/* =========================================================
   NH HOTFIX: Keep chat/smart widget inside viewport on mobile
   (Overrides inline right/bottom via !important)
   ========================================================= */
@media (max-width: 576px) {
  #nh-chat-btn {
    right: max(14px, env(safe-area-inset-right)) !important;
    bottom: max(14px, env(safe-area-inset-bottom)) !important;
  }
  #nh-chat-box {
    right: max(14px, env(safe-area-inset-right)) !important;
    bottom: max(86px, env(safe-area-inset-bottom)) !important;
    max-width: calc(100vw - 28px) !important;
  }
  .smart-capture-widget {
    right: max(14px, env(safe-area-inset-right)) !important;
    bottom: max(86px, env(safe-area-inset-bottom)) !important;
    max-width: calc(100vw - 28px) !important;
  }
}

