/* =========================================================
   Bobby Search v2 – Main Stylesheet
   Light theme, Inter font, red-black palette
   ========================================================= */

/* ── Variables ──────────────────────────────────────────── */
:root {
  --bs-primary:       #dc2626;
  --bs-primary-rgb:   220, 38, 38;
  --bs-font-sans-serif: 'Inter', system-ui, -apple-system, sans-serif;
  --color-bg:         #f8f9fb;
  --color-card:       #ffffff;
  --color-border:     #e2e8f0;
  --color-text:       #1a1a1a;
  --color-muted:      #64748b;
  --color-result-url: #16a34a;
  --color-result-title: #dc2626;
  --color-primary:    #dc2626;
  --color-primary-d:  #b91c1c;
  --shadow-sm:        0 1px 4px rgba(0,0,0,.07);
  --shadow-md:        0 4px 16px rgba(0,0,0,.10);
  --radius:           10px;
}

/* ── Reset / Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--bs-font-sans-serif);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 15px;
}

/* ── Bootstrap primary overrides ───────────────────────── */
.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--color-primary-d);
  border-color: var(--color-primary-d);
}
.btn-outline-primary {
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline-primary:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

/* ── Brand logo ─────────────────────────────────────────── */
.brand-bobby  { color: var(--color-primary); font-weight: 800; letter-spacing: -0.5px; }
.brand-search { color: #111111; font-weight: 300; letter-spacing: -0.5px; }

.navbar-brand { text-decoration: none; font-size: 1.35rem; }
.navbar-brand:hover .brand-bobby  { color: var(--color-primary-d); }
.navbar-brand:hover .brand-search { color: #000000; }

/* ── Navbar (non-home) ──────────────────────────────────── */
.home-nav { background: transparent; padding: 10px 0; }

/* Overlay nav on homepage hero */
.home-nav-overlay {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  padding: 10px 0;
}
.home-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0,0,0,.08);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.home-nav-link:hover { background: rgba(255,255,255,.95); color: #1e293b; }
.home-nav-link-primary {
  background: var(--color-primary);
  color: #fff !important;
  border-color: var(--color-primary);
}
.home-nav-link-primary:hover { background: var(--color-primary-d) !important; }

.site-nav {
  border-bottom: 1px solid var(--color-border);
  height: 62px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.brand-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  margin-right: 5px;
  position: relative;
  top: -1px;
}

.nav-search-wrap { max-width: 580px; }

.nav-search-inner {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}
.nav-search-icon-inner {
  position: absolute;
  left: 16px;
  color: #9ca3af;
  font-size: .82rem;
  pointer-events: none;
  z-index: 4;
}
.nav-search-input {
  width: 100%;
  border: 1.5px solid var(--color-border);
  border-radius: 32px !important;
  padding: 9px 52px 9px 40px;
  font-size: .9rem;
  background: #f8f9fb;
  transition: border-color .15s, box-shadow .15s, background .15s;
  outline: none;
}
.nav-search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(220,38,38,.1);
  background: #fff;
}
.nav-search-btn {
  position: absolute;
  right: 5px;
  width: 36px;
  height: 36px;
  border-radius: 50% !important;
  background: var(--color-primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, transform .1s;
  cursor: pointer;
  font-size: .8rem;
}
.nav-search-btn:hover {
  background: var(--color-primary-d);
  transform: scale(1.06);
}

.nav-action-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav-action-link:hover {
  background: #f1f5f9;
  color: #334155;
}
.nav-action-primary {
  background: var(--color-primary);
  color: #fff !important;
}
.nav-action-primary:hover {
  background: var(--color-primary-d) !important;
  color: #fff !important;
}

/* ── Search type tabs ───────────────────────────────────── */
.search-tabs { padding: 0; }
.search-tab-list { gap: 0; margin: 0; padding: 0; }
.search-tab-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  font-size: .875rem;
  color: var(--color-muted);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
}
.search-tab-link:hover { color: var(--color-primary); }
.search-tab-link.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 600;
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  position: relative;
  background: linear-gradient(160deg, #0f0f0f 0%, #1a0000 50%, #0f0f0f 100%);
  overflow: hidden;
  padding: 52px 0 0;
  margin-top: auto;
}

/* Subtle grid overlay – mirrors hero-bg-grid */
.site-footer-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(220,38,38,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220,38,38,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.site-footer-inner {
  position: relative;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
  z-index: 1;
}

/* ── Top section: brand + columns */
.site-footer-top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  padding-bottom: 40px;
}
@media (max-width: 860px) {
  .site-footer-top { grid-template-columns: 1fr; gap: 32px; }
}

/* Brand block */
.site-footer-logo {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 12px;
}
.site-footer-logo .brand-bobby { color: var(--color-primary); }
.site-footer-logo .brand-search { color: #e2e8f0; font-weight: 300; }

.site-footer-tagline {
  font-size: .82rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 16px;
}

.site-footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(220,38,38,.25);
  border-radius: 20px;
  padding: 5px 13px;
  font-size: .73rem;
  font-weight: 500;
  color: #fca5a5;
}
.site-footer-badge-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(34,197,94,.25);
  animation: pulse-green 2s infinite;
  flex-shrink: 0;
}

/* Nav columns */
.site-footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 600px) {
  .site-footer-cols { grid-template-columns: 1fr 1fr; }
}

.site-footer-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-footer-col-title {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #dc2626;
  margin-bottom: 6px;
}

.site-footer-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: #94a3b8;
  text-decoration: none;
  padding: 3px 0;
  transition: color .15s;
}
.site-footer-link i {
  width: 13px;
  font-size: .72rem;
  color: #475569;
  flex-shrink: 0;
  transition: color .15s;
}
.site-footer-link:hover { color: #f1f5f9; }
.site-footer-link:hover i { color: var(--color-primary); }

.site-footer-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: #475569;
  padding: 3px 0;
}
.site-footer-stat i {
  width: 13px;
  font-size: .72rem;
  color: #374151;
  flex-shrink: 0;
}

/* Divider */
.site-footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(220,38,38,.3), transparent);
  margin: 0;
}

/* Bottom bar */
.site-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0 20px;
}
.site-footer-copy {
  font-size: .75rem;
  color: #334155;
}

/* ═══════════════════════════════════════════════════════════
   HOME PAGE
   ═══════════════════════════════════════════════════════════ */

/* ── Hero ────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #fff 0%, #fff4f4 55%, #fff 100%);
  overflow: hidden;
  padding: 80px 20px 44px;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(220,38,38,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220,38,38,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 720px;
  z-index: 1;
}

/* Badge row: live + v2 side by side */
.hero-top-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid #fecaca;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: .76rem;
  font-weight: 500;
  color: #991b1b;
  margin-bottom: 0;
  box-shadow: 0 1px 4px rgba(220,38,38,.12);
}

/* Version 2 pill */
.hero-v2-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid #334155;
  border-radius: 20px;
  padding: 5px 16px;
  font-size: .76rem;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: .04em;
  box-shadow: 0 2px 12px rgba(15,23,42,.28), 0 0 0 1px rgba(255,255,255,.06) inset;
}
.hero-v2-badge i {
  color: #facc15;
  font-size: .72rem;
}
.hero-badge-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(34,197,94,.25);
  animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,.25); }
  50%       { box-shadow: 0 0 0 6px rgba(34,197,94,.08); }
}

.hero-logo {
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 12px;
}
.hero-logo .brand-bobby  { color: var(--color-primary); }
.hero-logo .brand-search { color: #111; font-weight: 300; }

/* v2 superscript chip on logo */
.hero-v2-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .38em;
  font-weight: 800;
  letter-spacing: .08em;
  vertical-align: super;
  line-height: 1;
  background: linear-gradient(135deg, var(--color-primary) 0%, #dc2626 100%);
  color: #fff;
  border-radius: 6px;
  padding: 3px 7px;
  margin-left: 6px;
  margin-bottom: .15em;
  box-shadow: 0 2px 8px rgba(220,38,38,.4);
  text-transform: uppercase;
  animation: v2-glow 3s ease-in-out infinite;
}
@keyframes v2-glow {
  0%, 100% { box-shadow: 0 2px 8px rgba(220,38,38,.4); }
  50%       { box-shadow: 0 2px 18px rgba(220,38,38,.75); }
}

.hero-tagline {
  color: #64748b;
  font-size: .95rem;
  margin-bottom: 20px;
  letter-spacing: .01em;
}

/* ── v2 feature strip ───────────────────────────────── */
.hero-v2-features {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(220,38,38,.18);
  border-radius: 14px;
  padding: 14px 24px;
  margin-bottom: 22px;
  max-width: 720px;
  width: 100%;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}
.hero-v2-feat {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}
.hero-v2-feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary), #dc2626);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(220,38,38,.3);
}
.hero-v2-feat-icon--purple {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  box-shadow: 0 3px 10px rgba(124,58,237,.3);
}
.hero-v2-feat-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.hero-v2-feat-text strong {
  font-size: .82rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}
.hero-v2-feat-text span {
  font-size: .71rem;
  color: #64748b;
  line-height: 1.45;
}
.hero-v2-feat-divider {
  width: 1px;
  height: 48px;
  background: #e2e8f0;
  margin: 0 20px;
  flex-shrink: 0;
}

/* ── Hero ad row (2 × 468×60 above search bar) ─────── */
.hero-ad-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 950px;
  margin-bottom: 18px;
}

/* Override banner slots to exact 468×60 */
.hero-ad-slot,
.hero-ad-slot .banner-slot {
  width: 468px;
  height: 60px;
  flex-shrink: 0;
  max-width: 100%;
}
.hero-ad-slot .banner-empty {
  width: 468px;
  height: 60px;
  max-width: 100%;
  background: #fff;
  border: 1.5px dashed #fca5a5;
  color: #f87171;
  border-radius: 6px;
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.hero-ad-slot .banner-empty:hover {
  background: #fff4f4;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.hero-ad-slot .banner-filled {
  width: 468px;
  height: 60px;
  max-width: 100%;
  border-radius: 6px;
}
.hero-ad-slot .banner-img {
  width: 468px;
  height: 60px;
  max-width: 100%;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,.1);
}


.hero-form { width: 100%; max-width: 640px; }

.hero-search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  background: #fff;
  border: 2px solid var(--color-border);
  border-radius: 48px;
  box-shadow: 0 4px 24px rgba(220,38,38,.10);
  transition: border-color .2s, box-shadow .2s;
}
.hero-search-box:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 4px 28px rgba(220,38,38,.18);
}
.hero-search-icon {
  position: absolute;
  left: 22px;
  color: #94a3b8;
  font-size: .9rem;
  pointer-events: none;
}
.hero-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 16px 60px 16px 50px;
  font-size: 1.05rem;
  color: var(--color-text);
  border-radius: 48px;
}
.hero-input::placeholder { color: #94a3b8; }
.hero-btn {
  position: absolute;
  right: 6px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .88rem;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.hero-btn:hover { background: var(--color-primary-d); transform: scale(1.07); }

.hero-type-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.hero-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 24px;
  font-size: .82rem;
  font-weight: 500;
  color: #64748b;
  background: #fff;
  border: 1.5px solid var(--color-border);
  text-decoration: none;
  cursor: pointer;
  transition: all .15s;
}
.hero-tab:hover { background: #f1f5f9; color: #334155; border-color: #cbd5e1; }
.hero-tab.active {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
  font-weight: 600;
}
.hero-form-foot {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}
.hero-index-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color .15s;
  padding: 4px 8px;
  border-radius: 6px;
}
.hero-index-link:hover { color: var(--color-primary); text-decoration: none; }

/* Inline stats below form */
.hero-stats-bar {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0;
  margin-top: 14px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: var(--shadow-sm);
  width: max-content;
  max-width: 100%;
}

/* Bookmark nudge bar below hero stats */
.hero-bookmark-bar {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 10px;
  padding: 7px 14px;
  font-size: .8rem;
  color: rgba(255,255,255,.85);
  flex-wrap: wrap;
  justify-content: center;
}
.hero-bookmark-bar i.fa-bookmark { color: #ef4444; }
.hero-bookmark-bar code {
  font-size: .75rem;
  color: #fca5a5;
  word-break: break-all;
  background: transparent;
}
.hero-bookmark-bar button {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  border-radius: 6px;
  padding: 2px 10px;
  font-size: .75rem;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
.hero-bookmark-bar button:hover { background: rgba(255,255,255,.28); }

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 14px;
  white-space: nowrap;
}
.hero-stat strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.1;
}
.hero-stat span {
  font-size: .68rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 2px;
}
.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--color-border);
  flex-shrink: 0;
}

/* ── Bobby Network bar ──────────────────────────────────────── */
/* ── Bobby Network overlay strip (inside hero, position: absolute) ─── */
.bobby-network-strip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: 1px solid rgba(0,0,0,.08);
  padding: 0 20px;
  z-index: 2;
}
.bobby-network-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  height: 36px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.bobby-network-strip-inner::-webkit-scrollbar { display: none; }
.bobby-network-strip-label {
  font-size: .58rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #94a3b8;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  padding-right: 4px;
}
.bobby-network-strip-label i { color: var(--color-primary); margin-right: 4px; }
.bobby-network-strip-divider {
  width: 1px;
  height: 16px;
  background: rgba(0,0,0,.1);
  flex-shrink: 0;
  margin: 0 10px;
}
.bobby-network-strip-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 10px;
  text-decoration: none !important;
  border-radius: 6px;
  transition: background .15s, opacity .15s;
  opacity: .5;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: .8rem;
}
.bobby-network-strip-item:hover {
  background: rgba(0,0,0,.04);
  opacity: 1;
}
.bobby-network-strip-item--active {
  opacity: 1;
  background: rgba(220,38,38,.06);
}
/* Alt service name (tube/facts/mates) */
.bobby-network-strip-alt-name {
  font-family: inherit;
  font-weight: 800;
  letter-spacing: -.5px;
}
.bobby-network-strip-badge {
  font-size: .52rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  background: var(--color-primary);
  color: #fff;
  border-radius: 4px;
  padding: 1px 5px;
  font-weight: 700;
  margin-left: 3px;
}
.bobby-network-strip-cs {
  font-size: .52rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  background: rgba(0,0,0,.07);
  color: #94a3b8;
  border-radius: 4px;
  padding: 1px 5px;
  font-weight: 600;
  margin-left: 3px;
}

/* ── Feature cards section ───────────────────────────────── */
.feat-section {
  background: linear-gradient(160deg, #0f1117 0%, #1a0a0a 60%, #0f1117 100%);
  padding: 36px 20px 40px;
  position: relative;
  overflow: hidden;
}
.feat-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.feat-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.feat-heading {
  text-align: center;
  margin-bottom: 28px;
}
.feat-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(220,38,38,.12);
  border: 1px solid rgba(220,38,38,.25);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 12px;
}
.feat-title {
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 10px;
  letter-spacing: -.02em;
}
.feat-lead {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}
.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.feat-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .2s, border-color .2s, background .2s;
  position: relative;
  overflow: hidden;
}
.feat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(ellipse at 50% 0%, rgba(220,38,38,.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.feat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(220,38,38,.35);
  background: rgba(255,255,255,.07);
}
.feat-card:hover::after { opacity: 1; }
.feat-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  margin-bottom: 2px;
}
.feat-card-icon--red    { background: rgba(220,38,38,.18);  color: #f87171; }
.feat-card-icon--purple { background: rgba(139,92,246,.18); color: #a78bfa; }
.feat-card-icon--green  { background: rgba(16,185,129,.18); color: #34d399; }
.feat-card-icon--blue   { background: rgba(59,130,246,.18); color: #60a5fa; }
.feat-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.25;
}
.feat-card-body {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.feat-card-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 10px;
  margin-top: 4px;
}

/* ── Home body wrapper ──────────────────────────────── */
.home-body-section {
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
  padding: 36px 0 60px;
}

/* ── Section bar ─────────────────────────────────────── */
.home-section-bar {
  margin: 0 0 28px;
  padding: 0 28px;
}
.home-section-bar-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e2e8f0;
}
.hsb-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .68rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: .1em;
  white-space: nowrap;
  background: #fff4f4;
  border: 1px solid #fecaca;
  border-radius: 20px;
  padding: 3px 10px;
}
.hsb-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  display: inline-block;
  animation: hsb-pulse 2s ease-in-out infinite;
}
@keyframes hsb-pulse { 0%,100%{opacity:1} 50%{opacity:.25} }
.hsb-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  white-space: nowrap;
}
.hsb-rule {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, #e2e8f0, transparent);
  border-radius: 2px;
}

/* ── Home body 3-column grid ─────────────────────────────────── */
.home-body {
  max-width: 95%;
  margin: 0 auto;

  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 28px;
  gap: 24px;
  padding: 0 28px;
}

/* Column base */
.home-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Sticky right column */
.home-col-side {
  position: sticky;
  top: 24px;
}

/* ── Panel (replaces home-card) ─────────────────────── */
.hb-panel {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e8edf3;
  box-shadow: 0 1px 4px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05);
  overflow: hidden;
  margin-bottom: 20px;
}
.hb-panel:last-child { margin-bottom: 0; }

.hb-panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px 16px;
  border-bottom: 1px solid #f1f5f9;
}
.hb-panel-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  flex-shrink: 0;
}
.hb-icon-red   { background: #fee2e2; color: var(--color-primary); }
.hb-icon-slate { background: #f1f5f9; color: #64748b; }
.hb-icon-blue  { background: #dbeafe; color: #2563eb; }
.hb-icon-amber { background: #fef3c7; color: #b45309; }
.hb-icon-green { background: #dcfce7; color: #15803d; }

/* ── Verified Markets panel ────────────────── */
.hb-panel-verified { border-color: #bbf7d0; }
.hb-panel-verified .hb-panel-head { background: #f0fdf4; border-bottom-color: #bbf7d0; }

.verified-list { list-style: none; margin: 0; padding: 4px 0; }
.verified-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-bottom: 1px solid #f0fdf4;
  transition: background .12s;
}
.verified-item:last-child { border-bottom: none; }
.verified-item:hover { background: #f0fdf4; }

.verified-badge {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #dcfce7;
  color: #15803d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .68rem;
  flex-shrink: 0;
}
.verified-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.verified-name {
  font-size: .84rem;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.verified-note {
  font-size: .71rem;
  color: #15803d;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.verified-link {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .62rem;
  flex-shrink: 0;
  text-decoration: none;
  transition: background .12s, color .12s;
}
.verified-link:hover { background: #dcfce7; color: #15803d; border-color: #86efac; }

.verified-footer {
  margin: 0;
  padding: 10px 18px;
  font-size: .71rem;
  color: #15803d;
  background: #f0fdf4;
  border-top: 1px solid #bbf7d0;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Scam Markets panel ─────────────────────────────── */
.hb-panel-scam { border-color: #fde68a; }
.hb-panel-scam .hb-panel-head { background: #fffbeb; border-bottom-color: #fde68a; }

.scam-list { list-style: none; margin: 0; padding: 4px 0; }
.scam-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-bottom: 1px solid #fef9ee;
  transition: background .12s;
}
.scam-item:last-child { border-bottom: none; }
.scam-item:hover { background: #fffbeb; }

.scam-skull {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #fef3c7;
  color: #b45309;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .68rem;
  flex-shrink: 0;
}
.scam-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.scam-name {
  font-size: .84rem;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.scam-note {
  font-size: .71rem;
  color: #b45309;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.scam-link {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .62rem;
  flex-shrink: 0;
  text-decoration: none;
  transition: background .12s, color .12s;
}
.scam-link:hover { background: #fee2e2; color: var(--color-primary); border-color: #fca5a5; }

.scam-footer {
  margin: 0;
  padding: 10px 18px;
  font-size: .71rem;
  color: #b45309;
  background: #fffbeb;
  border-top: 1px solid #fde68a;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Crypto Rates panel ─────────────────────────────────── */
.hb-icon-orange { background: #fff7ed; color: #ea580c; }
.hb-panel-crypto { border-color: #fed7aa; }
.hb-panel-crypto .hb-panel-head { background: #fff7ed; border-bottom-color: #fed7aa; }

.crypto-list { list-style: none; margin: 0; padding: 4px 0; }
.crypto-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-bottom: 1px solid #fef3e2;
  transition: background .12s;
}
.crypto-item:last-child { border-bottom: none; }
.crypto-item:hover { background: #fff7ed; }
.crypto-icon {
  width: 30px;
  text-align: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.crypto-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.crypto-name {
  font-size: .84rem;
  font-weight: 600;
  color: #0f172a;
}
.crypto-symbol {
  font-size: .68rem;
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: .04em;
}
.crypto-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}
.crypto-price {
  font-size: .88rem;
  font-weight: 700;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}
.crypto-change {
  font-size: .7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
}
.crypto-up   { color: #16a34a; }
.crypto-down { color: #dc2626; }
.crypto-footer {
  margin: 0;
  padding: 9px 18px;
  font-size: .68rem;
  color: #94a3b8;
  background: #fafafa;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 5px;
}

.hb-panel-title {
  font-size: .9rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}
.hb-panel-sub {
  font-size: .75rem;
  color: #94a3b8;
  margin-top: 1px;
}
.hb-src-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  border: 1px solid #fecaca;
  background: #fff4f4;
  border-radius: 20px;
  padding: 4px 10px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.hb-src-link:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.hb-src-link i { font-size: .6rem; }
.hb-empty {
  font-size: .84rem;
  color: #94a3b8;
  padding: 20px 22px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Trending cloud */
.trending-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 22px 20px;
}
.trending-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff4f4;
  color: #b91c1c;
  padding: 7px 14px;
  border-radius: 22px;
  border: 1px solid #fecaca;
  font-size: .83rem;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s, transform .12s, box-shadow .15s;
  font-weight: 600;
}
.trending-tag:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220,38,38,.2);
}
.trending-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(185,28,28,.12);
  color: #b91c1c;
  border-radius: 10px;
  font-size: .66rem;
  font-weight: 700;
  padding: 1px 6px;
  min-width: 20px;
}
.trending-tag:hover .trending-count { background: rgba(255,255,255,.25); color: #fff; }

/* Recent searches */
.recent-list { list-style: none; margin: 0; padding: 4px 0; }
.recent-item {
  display: flex;
  align-items: center;
  padding: 9px 22px;
  text-decoration: none;
  color: #334155;
  font-size: .86rem;
  gap: 12px;
  transition: background .12s, color .12s;
  border-radius: 0;
}
.recent-list li:last-child .recent-item { border-bottom: none; }
.recent-item:hover { background: #fef2f2; color: #b91c1c; }
.recent-num {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .68rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: background .12s, color .12s;
}
.recent-item:hover .recent-num { background: #fee2e2; color: var(--color-primary); }
.recent-arrow {
  color: #cbd5e1;
  font-size: .65rem;
  margin-left: auto;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity .15s, transform .15s;
}
.recent-item:hover .recent-arrow { opacity: 1; transform: translateX(3px); color: var(--color-primary); }

/* Index a Site CTA panel */
.hb-panel-cta {
  background: linear-gradient(135deg, #fff 60%, #fff9f9 100%);
  border: 1px solid #fde8e8;
  text-align: center;
  padding: 28px 22px 24px;
}
.hb-cta-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-primary), #dc2626);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 14px;
  box-shadow: 0 4px 14px rgba(220,38,38,.3);
}
.hb-cta-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
}
.hb-cta-desc {
  font-size: .82rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 18px;
}
.home-index-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--color-primary);
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 3px 10px rgba(220,38,38,.28);
}
.home-index-btn:hover {
  background: var(--color-primary-d);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(220,38,38,.32);
}
.hb-cta-pills {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.hb-cta-pills span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .7rem;
  font-weight: 600;
  color: #94a3b8;
}
.hb-cta-pills i { color: #cbd5e1; font-size: .65rem; }

/* Legacy aliases so other pages don't break */
.home-card { background: #fff; border-radius: 16px; border: 1px solid #e8edf3; box-shadow: 0 1px 4px rgba(0,0,0,.04); overflow: hidden; }
.home-card-header { display: flex; align-items: center; gap: 10px; font-size: .875rem; font-weight: 700; color: #0f172a; padding: 16px 20px; border-bottom: 1px solid #f1f5f9; }
.home-card-body { padding: 18px 20px; }
.home-empty-msg { font-size: .85rem; color: var(--color-muted); margin: 0; }

/* ═══════════════════════════════════════════════════════════
   SEARCH RESULTS
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   SEARCH RESULTS PAGE
   ═══════════════════════════════════════════════════════════ */

.sr-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Filter bar ──────────────────────────────────────────── */
.sr-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 12px 0 14px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 20px;
}

.sr-filter-left {
  flex-shrink: 0;
}

.sr-result-count-inline {
  font-size: .83rem;
  color: var(--color-muted);
}
.sr-result-count-inline strong { font-weight: 600; color: #334155; }

.sr-filter-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.sr-filter-group {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.sr-filter-label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #94a3b8;
  white-space: nowrap;
  margin-right: 2px;
}

.sr-filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 500;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: all .14s ease;
}
.sr-filter-chip:hover {
  background: #fee2e2;
  color: var(--color-primary);
  border-color: #fca5a5;
}
.sr-filter-chip.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  font-weight: 600;
}

.sr-body {
  display: flex;
  gap: 36px;
  align-items: flex-start;
}

/* ── Main results column ─────────────────────────────────── */
.sr-main {
  flex: 1;
  min-width: 0;
  max-width: 680px;
  padding-bottom: 48px;
}

/* ── Image strip ─────────────────────────────────────────── */
.sr-image-strip {
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fafafa 0%, #f8f4ff 100%);
  box-shadow: var(--shadow-sm);
}
.sr-image-strip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .83rem;
  color: #64748b;
  margin-bottom: 12px;
}
.sr-image-strip-header a {
  color: var(--color-primary);
  text-decoration: none;
  font-size: .8rem;
  font-weight: 500;
}
.sr-image-strip-header a:hover { text-decoration: underline; }
.sr-image-strip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.sr-img-thumb {
  display: block;
  width: 120px;
  height: 78px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  flex-shrink: 0;
  transition: transform .2s, box-shadow .2s, opacity .15s;
  box-shadow: var(--shadow-sm);
}
.sr-img-thumb:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-md);
  opacity: .92;
}
.sr-img-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Individual result card ──────────────────────────────── */
.sr-result {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 12px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  position: relative;
}
.sr-result:hover {
  border-color: #fca5a5;
  box-shadow: 0 4px 20px rgba(220,38,38,.08);
  transform: translateY(-1px);
}

/* URL row */
.sr-result-url-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.sr-result-favicon-wrap {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #dc2626, #991b1b);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.sr-favicon-img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}
.sr-result-favicon-wrap i {
  font-size: .55rem;
  color: #fff;
}

.sr-result-url-text {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .8rem;
  color: var(--color-result-url);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.sr-result-domain { font-weight: 600; flex-shrink: 0; }
.sr-result-breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.sr-result-breadcrumb i { font-size: .55rem; flex-shrink: 0; }

/* Badges */
.sr-result-badges {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
  margin-left: auto;
}
.sr-badge {
  display: inline-flex;
  align-items: center;
  font-size: .68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: .02em;
  white-space: nowrap;
}
.sr-badge-onion {
  background: #1a0000;
  color: #fca5a5;
  border: 1px solid #7f1d1d;
}
.sr-badge-media {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

/* Title */
.sr-result-title {
  display: block;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--color-result-title);
  text-decoration: none;
  line-height: 1.35;
  margin-bottom: 8px;
  transition: color .12s;
}
.sr-result-title:hover { text-decoration: underline; color: #991b1b; }

.sr-ext-icon {
  font-size: .65rem;
  margin-left: 6px;
  opacity: 0;
  vertical-align: middle;
  transition: opacity .12s;
}
.sr-result-title:hover .sr-ext-icon { opacity: .7; }

/* Snippet – highlighted terms */
.sr-result-snippet {
  font-size: .9rem;
  color: #3d4f63;
  line-height: 1.7;
  margin-bottom: 10px;
}
.sr-result-snippet mark {
  background: #fef08a;
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
  font-weight: 600;
}

/* Footer row */
.sr-result-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.sr-result-date {
  font-size: .78rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
.sr-result-date i { font-size: .72rem; }

.sr-result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.sr-tag {
  font-size: .73rem;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 2px 10px;
  text-decoration: none;
  transition: all .12s;
  font-weight: 500;
}
.sr-tag:hover { background: #fee2e2; color: var(--color-primary); border-color: #fca5a5; }

/* ── Full-width leaderboard zones (top & bottom) ─────────── */
.sr-leaderboard {
  width: 100%;
  background: #f1f3f5;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0;
  text-align: center;
}
.sr-leaderboard-label {
  display: block;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #b0bac7;
  margin-bottom: 6px;
}
.sr-leaderboard-banners {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 16px;
}

/* ── Mid-result banner (single 468×60, centred in column) ── */
.sr-mid-banner {
  margin: 8px 0 16px;
  text-align: center;
}
.sr-mid-banner-label {
  display: block;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #cbd5e1;
  margin-bottom: 4px;
}
.sr-mid-banner .banner-slot { margin: 0 auto; }

/* ── Sidebar ad zone ─────────────────────────────────────── */
.sr-sidebar-ad-zone { margin-bottom: 12px; display: flex; flex-direction: column; align-items: center; }
.sr-sidebar-ad-label {
  display: block;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #b0bac7;
  text-align: center;
  margin-bottom: 4px;
}
/* Sidebar ad zone – banners render at standard 468×60, centred */
.sr-sidebar-ad-zone .banner-slot,
.sr-sidebar-ad-zone .banner-img,
.sr-sidebar-ad-zone .banner-filled,
.sr-sidebar-ad-zone .banner-empty {
  border-radius: 6px;
}

/* ── Pagination ──────────────────────────────────────────── */
.sr-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.sr-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 18px;
  border-radius: 24px;
  font-size: .875rem;
  color: var(--color-primary);
  text-decoration: none;
  border: 1px solid var(--color-border);
  background: #fff;
  transition: all .12s;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.sr-page-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.sr-page-numbers { display: flex; align-items: center; gap: 2px; }
.sr-page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: .875rem;
  color: #374151;
  text-decoration: none;
  transition: all .12s;
  font-weight: 500;
}
.sr-page-num:hover { background: #f1f5f9; }
.sr-page-num.active {
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(220,38,38,.35);
}
.sr-page-gap { width: 40px; text-align: center; color: #94a3b8; font-size: .875rem; }

/* ── Empty state ─────────────────────────────────────────── */
.sr-empty {
  padding: 48px 24px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
}
.sr-empty-icon {
  font-size: 3rem;
  color: #cbd5e1;
  margin-bottom: 16px;
}
.sr-empty-title { font-size: 1.2rem; color: #1e293b; margin-bottom: 10px; font-weight: 600; }
.sr-empty-sub { font-size: .9rem; color: #64748b; margin-bottom: 20px; }
.sr-empty-sub a { color: var(--color-primary); }
.sr-empty-tips {
  font-size: .875rem;
  color: #475569;
  text-align: left;
  max-width: 460px;
  margin: 0 auto 20px;
  background: #f8fafc;
  border-radius: 10px;
  padding: 16px 20px;
}
.sr-empty-tips ul { padding-left: 1.25rem; }
.sr-empty-tips li { margin-bottom: 4px; }
.sr-empty-tips code {
  background: #e2e8f0;
  color: #0f172a;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: .82rem;
}

/* Operator badges */
.sr-operator-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.sr-op-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: .72rem; font-weight: 600; border-radius: 20px;
  padding: 3px 10px; letter-spacing: .02em;
}
.sr-op-phrase  { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.sr-op-exclude { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }
.sr-op-site    { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.sr-op-intitle { background: #fef9c3; color: #854d0e; border: 1px solid #fde68a; }
.sr-op-inurl   { background: #faf5ff; color: #7e22ce; border: 1px solid #e9d5ff; }

/* OR fallback notice */
.sr-fallback-notice {
  font-size: .82rem;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  padding: 8px 14px;
  color: #78350f;
  margin-bottom: 12px;
}
.sr-fallback-notice a { color: #92400e; font-weight: 600; }

/* Autocomplete dropdown */
.bs-suggest-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 9999;
  overflow: hidden;
}
.bs-suggest-item {
  padding: 9px 16px;
  font-size: .88rem;
  color: #1e293b;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background .1s;
}
.bs-suggest-item::before {
  content: "\f002";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: .7rem;
  color: #94a3b8;
  flex-shrink: 0;
}
.bs-suggest-item:hover,
.bs-suggest-item.active { background: #f1f5f9; }
.sr-empty-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Right sidebar ───────────────────────────────────────── */
.sr-sidebar {
  width: 500px;
  flex-shrink: 0;
  padding-top: 0;
  display: block;
  position: sticky;
  top: 80px;
}
@media (max-width: 1280px) { .sr-sidebar { display: none; } }

.sr-sidebar-card {
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 16px 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.sr-sidebar-title {
  font-size: .73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #94a3b8;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}
.sr-related-link {
  display: flex;
  align-items: center;
  font-size: .855rem;
  color: #1e293b;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
  transition: color .12s;
}
.sr-related-link:last-child { border-bottom: none; }
.sr-related-link:hover { color: var(--color-primary); }

.sr-stat {
  display: flex;
  justify-content: space-between;
  font-size: .84rem;
  padding: 5px 0;
  color: #475569;
  border-bottom: 1px solid #f8fafc;
}
.sr-stat:last-child { border-bottom: none; }
.sr-stat strong { color: #1e293b; }

/* Sidebar quick filters */
.sr-sidebar-filter-links { display: flex; flex-direction: column; gap: 2px; }
.sr-sidebar-filter-link {
  display: flex;
  align-items: center;
  font-size: .84rem;
  color: #475569;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 8px;
  transition: all .12s;
}
.sr-sidebar-filter-link:hover { background: #fee2e2; color: var(--color-primary); }
.sr-sidebar-filter-link.active {
  background: #fee2e2;
  color: var(--color-primary);
  font-weight: 600;
}
.sr-sidebar-filter-link i { width: 16px; text-align: center; }

/* ═══════════════════════════════════════════════════════════
   IMAGE GRID
   ═══════════════════════════════════════════════════════════ */

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.image-card {
  border-radius: 8px;
  overflow: hidden;
  background: #e2e8f0;
  aspect-ratio: 4/3;
  position: relative;
}

.image-card-link {
  display: block;
  width: 100%; height: 100%;
  position: relative;
  overflow: hidden;
}

.image-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}
.image-card-link:hover .image-card-img { transform: scale(1.04); }

.image-card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  padding: 20px 10px 8px;
  opacity: 0;
  transition: opacity .2s;
  color: #fff;
}
.image-card-link:hover .image-card-overlay { opacity: 1; }
.image-card-meta p { margin: 0; }
.x-small { font-size: .7rem; }

.image-placeholder-card {
  background: #f1f5f9;
  border-radius: 8px;
  color: #94a3b8;
}

/* ── Image preview strip on web search results ───────────── */
.image-preview-strip {
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: .75rem 1rem;
}
.image-preview-thumb {
  display: block;
  width: 120px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
  transition: opacity .15s;
}
.image-preview-thumb:hover { opacity: .85; }
.image-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ═══════════════════════════════════════════════════════════
   ADVERTISEMENTS  –  uniform 468×60 banners
   ═══════════════════════════════════════════════════════════ */

/* ── Banner zone (homepage – under search bar) ───────────── */
.banner-zone {
  padding: .75rem 1rem;
}

/* ── 2-column banner grid ─────────────────────────────────── */
.banner-ad-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 960px;
  margin: 0 auto;
}

/* ── Individual 468×60 slot ───────────────────────────────── */
.banner-slot {
  width: 468px;
  height: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

/* Creative image – fills the slot */
.banner-img {
  width: 468px;
  height: 60px;
  max-width: 100%;
  display: block;
  border-radius: 3px;
  object-fit: cover;
}

/* Text-only / name-only paid ad */
.banner-filled {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 468px;
  height: 60px;
  max-width: 100%;
  background: linear-gradient(135deg, #1a0000 0%, #2d0000 100%);
  border: 1px solid var(--color-primary);
  border-radius: 3px;
  color: #f87171;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: .04em;
  transition: background .15s, border-color .15s;
}
.banner-filled:hover {
  background: linear-gradient(135deg, #2d0000 0%, #450000 100%);
  border-color: var(--color-primary-d);
  color: #fca5a5;
}

/* Empty slot – "Advertise Now" */
.banner-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 468px;
  height: 60px;
  max-width: 100%;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 3px;
  color: #94a3b8;
  font-size: .78rem;
  text-decoration: none;
  letter-spacing: .04em;
  transition: border-color .15s, color .15s;
}
.banner-empty:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ── Banner Exchange strip (footer) ──────────────────────── */
.exchange-strip {
  border-top: 1px solid var(--color-border);
  padding: .5rem 0;
  text-align: center;
}
.exchange-label {
  font-size: .55rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-muted);
  font-weight: 600;
  margin-bottom: .35rem;
}
.exchange-banners {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════
   ADMIN – KPI cards
   ═══════════════════════════════════════════════════════════ */

.kpi-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.kpi-value {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-text);
}
.kpi-label {
  font-size: .8rem;
  color: var(--color-muted);
  margin-top: 2px;
  font-weight: 500;
}
.kpi-sub {
  font-size: .72rem;
  margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════════════ */

.page-link {
  color: var(--color-primary);
  border-radius: 6px !important;
  margin: 0 2px;
}
.page-item.active .page-link {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}
.page-link:hover { background: #fee2e2; color: var(--color-primary-d); }

/* ═══════════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════════ */

.font-monospace { font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; }

/* ── Homepage update announcement banner ───────────────────────────── */
.home-update-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(90deg, #0f0f0f 0%, #1a0000 50%, #0f0f0f 100%);
  border: 1px solid #7f1d1d;
  border-radius: 10px;
  padding: 13px 20px;
  color: #fef2f2;
  font-size: .875rem;
  flex-wrap: wrap;
  line-height: 1.5;
}
.home-update-badge {
  background: #dc2626;
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 3px 9px;
  border-radius: 4px;
  flex-shrink: 0;
}
.home-update-body { flex: 1; min-width: 200px; }
.home-update-body a { color: #fca5a5; text-decoration: underline; }
.home-update-cta {
  color: #fca5a5;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  font-size: .84rem;
  border: 1px solid #7f1d1d;
  padding: 5px 14px;
  border-radius: 6px;
  transition: background .15s;
  flex-shrink: 0;
}
.home-update-cta:hover { background: rgba(220,38,38,.2); color: #fff; }

/* Submit page – step icon box */
.step-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Card elevation */
.card { border-radius: var(--radius) !important; }

/* Responsive image grid */
@media (max-width: 992px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-section { padding: 28px 20px 32px; }
  .home-body { grid-template-columns: 1fr; }
  .home-side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .home-side .mt-3 { margin-top: 0 !important; }
  .home-side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .home-side .mt-3 { margin-top: 0 !important; }
}
@media (max-width: 576px) {
  .image-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
  }
  .hero-section { min-height: 50vh; padding: 36px 16px 28px; }
  .hero-logo { font-size: 2.6rem; letter-spacing: -1.5px; }
  .hero-stats-bar { padding: 8px 10px; overflow-x: auto; width: 100%; }
  .hero-stat { padding: 0 10px; }
  .hero-stat strong { font-size: 1rem; }
  .hero-stat span { font-size: .62rem; }
  .hero-stat { padding: 0 12px; }
  .hero-stat strong { font-size: 1.05rem; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .feat-title { font-size: 1.4rem; }
  .home-body { padding: 0 12px; }
  .home-side { grid-template-columns: 1fr; }
  .sr-filter-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .sr-filter-right { gap: 10px; }
  .sr-filter-group { gap: 4px; }
  .sr-filter-chip { font-size: .74rem; padding: 3px 9px; }
  .sr-result { padding: 14px 14px; }
  .sr-result-title { font-size: 1rem; }
  .sr-result-badges { display: none; }
}
@media (max-width: 768px) {
  .sr-filter-right { gap: 10px; }
  .sr-filter-label { display: none; }
}

.news-strip {
  background: #fff;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 28px 0;

  display: flex;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════
   PARTNERS STRIP
   ═══════════════════════════════════════════════════════════ */

.partners-strip {
  background: #fff;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 28px 0;
}

.partners-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 20px;
}

.partners-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #94a3b8;
  text-align: center;
  margin-bottom: 20px;
}

.partners-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Individual partner card */
.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: #fafafa;
  text-decoration: none;
  min-width: 100px;
  transition: border-color .15s, box-shadow .15s, background .15s, transform .15s;
}
.partner-item:hover {
  border-color: #fca5a5;
  background: #fff4f4;
  box-shadow: 0 4px 16px rgba(220,38,38,.08);
  transform: translateY(-2px);
}

/* Logo wrapper */
.partner-logo-wrap {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
  flex-shrink: 0;
}
.partner-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}
/* Icon fallback when image fails to load */
.partner-logo-fallback {
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: .95rem;
}

.partner-name {
  font-size: .78rem;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
}
.partner-item:hover .partner-name { color: var(--color-primary); }

.partner-tag {
  font-size: .65rem;
  color: #94a3b8;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .partners-row { gap: 6px; }
  .partner-item { min-width: 80px; padding: 10px 12px; }
  .partner-name { font-size: .72rem; }
  .partner-tag { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   DARKNET NEWS (inside home-card, dark theme)
   ═══════════════════════════════════════════════════════════ */

/* Source link in header */
.dnews-src-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .73rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  opacity: .75;
  transition: opacity .15s;
}
.dnews-src-link:hover { opacity: 1; text-decoration: underline; color: var(--color-primary); }
.dnews-src-link i { font-size: .6rem; }

/* ── 2-column compact grid */
.dnews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.hb-panel .dnews-grid { padding: 14px 18px 18px; }
.hb-panel .trending-cloud { padding: 16px 22px 20px; }
@media (max-width: 900px) { .dnews-grid { grid-template-columns: 1fr; } }

/* ── Card: horizontal row (thumb left, text right) */
.dnews-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
  min-height: 72px;
}
.dnews-card:hover {
  border-color: #fca5a5;
  box-shadow: 0 2px 12px rgba(220,38,38,.08);
}

/* Thumbnail – small square on the left */
.dnews-thumb {
  width: 72px;
  min-width: 72px;
  height: auto;
  overflow: hidden;
  background: #f1f5f9;
  flex-shrink: 0;
}
.dnews-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.dnews-card:hover .dnews-thumb img { transform: scale(1.06); }
.dnews-thumb-placeholder {
  width: 100%;
  height: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 1.1rem;
}
.dnews-thumb.dnews-thumb-fallback { background: #fee2e2; }
.dnews-thumb.dnews-thumb-fallback img { display: none; }

/* Text body */
.dnews-card-body {
  padding: 8px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.dnews-card-title {
  font-size: .8rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dnews-card:hover .dnews-card-title { color: var(--color-primary); }

.dnews-date {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .68rem;
  color: var(--color-muted);
}
.dnews-date i { font-size: .62rem; }

.dnews-tags { display: flex; flex-wrap: wrap; gap: 3px; }
.dnews-tag {
  font-size: .62rem;
  font-weight: 600;
  color: var(--color-primary);
  background: #fff4f4;
  border: 1px solid #fecaca;
  border-radius: 20px;
  padding: 1px 7px;
}

/* hide footer – not needed in compact mode */
.dnews-card-footer { display: none; }
