/* =============================================
   LeadVector — Каталог технологий
   Custom CSS (Bootstrap 5.2.3 override layer)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
  --sidebar-width: 220px;
  --sidebar-bg: #060816;
  --topbar-h: 64px;
  --app-bg: #f6f7fb;
  --line: #e5e9f1;
  --line2: #edf1f7;
  --blue: #315CF6;
  --lv-action: #4450B2;
  --lv-action-hover: #3D48A4;
  --lv-action-active: #354093;
  --blue-soft: #edf3ff;
  --muted: #667085;
  --muted2: #8b98ad;
  --shadow-sm: 0 2px 8px rgba(17,24,39,.06);
  --shadow-md: 0 18px 52px rgba(17,24,39,.13), 0 4px 12px rgba(17,24,39,.06);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--app-bg);
  color: #171b26;
  font-family: Onest, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ===================== APP LAYOUT ===================== */
.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0,1fr);
  transition: grid-template-columns .22s ease;
}
.app.collapsed { --sidebar-width: 72px; }

/* ===================== SIDEBAR ===================== */
.sidebar {
  min-width: 0;
  background: linear-gradient(180deg, #060816 0%, #080B1D 32%, #0B1230 100%);
  color: #fff;
  border-right: 1px solid rgba(255,255,255,.06);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 30;
}
.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 48%, rgba(49,92,246,.16), transparent 34%),
    radial-gradient(circle at 92% 78%, rgba(115,87,255,.12), transparent 38%),
    linear-gradient(180deg, transparent 0%, transparent 30%, rgba(255,255,255,.025) 58%, transparent 100%),
    linear-gradient(90deg, transparent 0%, rgba(49,92,246,.04) 100%);
  opacity: .78;
}
.sidebar > * { position: relative; z-index: 1; }

/* Sidebar Top */
.sidebar-top {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  position: relative;
}
.app.collapsed .sidebar-top {
  justify-content: center;
  padding: 0;
}

/* Brand Logo */
.sidebar-brand {
  height: 64px;
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-right: 8px;
}
.brand-expanded {
  width: 142px;
  height: 40px;
  display: flex;
  align-items: center;
  overflow: visible;
}
.sidebar-brand-logo {
  display: block;
  width: 142px;
  height: auto;
}
.sidebar-brand-logo .logoVectorRest,
.sidebar-brand-logo .logoArrow path {
  fill: color-mix(in srgb, #335CFF 85%, white);
  transition: fill .2s, transform .24s cubic-bezier(.2,.8,.2,1);
}
.sidebar-brand-logo .logoArrow { transform-box: fill-box; transform-origin: center center; }
.sidebar-brand-logo .logoArrowRight { transform-box: fill-box; transform-origin: 50% 100%; }
.sidebar-brand:hover .sidebar-brand-logo .logoVectorRest,
.sidebar-brand:hover .sidebar-brand-logo .logoArrow path { fill: #335CFF; }
.sidebar-brand-logo .logoArrowMoving {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  transition: fill .2s, transform .28s cubic-bezier(.16,1,.3,1);
}
.sidebar-brand:hover .sidebar-brand-logo .logoArrowMoving { transform: translate(4px,-4px); }

.brand-collapsed {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
}
.mini-logo-ring {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 38% 26%, rgba(51,92,255,.28), rgba(138,100,255,.14) 42%, rgba(255,255,255,.035) 72%),
    #060816;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 22px rgba(0,0,0,.24);
  overflow: hidden;
}
.mini-logo-svg { width: 24px; height: 24px; display: block; }
.mini-logo-svg .logoArrow path { fill: color-mix(in srgb,#335CFF 85%,white); }
.mini-logo-ring:hover .logoArrowMoving { transform: translate(4px,-4px); }

.app.collapsed .sidebar-brand { flex: 0 0 auto; }
.app.collapsed .brand-expanded { display: none; }
.app.collapsed .brand-collapsed { display: grid; }

/* Sidebar Toggle */
.sidebar-toggle {
  margin-left: auto;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  color: #cbd5e1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: .15s;
  font-size: 14px;
  line-height: 1;
}
.sidebar-toggle:hover { background: rgba(255,255,255,.08); color: #fff; }
.app.collapsed .sidebar-toggle {
  position: absolute;
  right: -14px;
  top: 18px;
  background: #060816;
  box-shadow: 0 8px 20px rgba(0,0,0,.22);
  margin-left: 0;
}

/* Nav */
.lv-nav {
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav-item {
  height: 42px;
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-radius: 10px;
  color: #aeb8ca;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.015em;
  transition: .15s;
  position: relative;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: rgba(49,92,246,.16); color: #fff; }
.nav-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #cbd5e1;
}
.nav-icon svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-item.active .nav-icon { color: #7ea0ff; }
.nav-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity .15s ease, width .2s ease;
}
.nav-separator {
  height: 1px;
  background: rgba(255,255,255,.07);
  margin: 6px 10px;
}
.app.collapsed .lv-nav .nav-item {
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 0;
}
.app.collapsed .lv-nav .nav-text {
  opacity: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
}
.app.collapsed .lv-nav .nav-item:hover::after {
  content: attr(data-title);
  position: absolute;
  left: 58px;
  top: 50%;
  transform: translateY(-50%);
  background: #111827;
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
  z-index: 60;
}

.sidebar-bottom {
  margin-top: auto;
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,.07);
}

/* ===================== MAIN ===================== */
.main {
  min-width: 0;
  display: grid;
  grid-template-rows: var(--topbar-h) minmax(0,1fr);
}

/* ===================== TOPBAR ===================== */
.topbar {
  height: var(--topbar-h);
  background: #fafbfc;
  border-bottom: 1px solid rgba(49,92,246,.08);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 22px;
  min-width: 0;
  position: relative;
  z-index: 20;
}

/* Top Search */
.top-search {
  width: min(760px, 56vw);
  height: 40px;
  position: relative;
}
.top-search::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 15px;
  height: 15px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg width='15' height='15' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.8 11.5a4.7 4.7 0 1 0 0-9.4 4.7 4.7 0 0 0 0 9.4ZM10.2 10.2l2.7 2.7' stroke='%2398A2B3' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
  pointer-events: none;
}
.top-search input {
  width: 100%;
  height: 40px;
  border: 1px solid #dce3ef;
  border-radius: 10px;
  background: #fff;
  outline: none;
  padding: 0 12px 0 36px;
  font: 500 13px Onest, sans-serif;
  color: #202636;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.top-search input:focus {
  border-color: #b9c6ff;
  box-shadow: 0 0 0 3px rgba(49,92,246,.08), 0 8px 22px rgba(17,24,39,.06);
}
.top-search:hover input { border-color: #c9d4e6; box-shadow: 0 4px 14px rgba(17,24,39,.045); }

/* Top Suggest */
.top-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  z-index: 90;
  padding: 10px;
  border: 1px solid rgba(226,232,240,.96);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 54px rgba(15,23,42,.14), 0 5px 14px rgba(15,23,42,.055);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(.992);
  transform-origin: 50% 0;
  transition: opacity .18s cubic-bezier(.16,1,.3,1), transform .18s cubic-bezier(.16,1,.3,1), visibility .18s;
  color: #0B1220;
}
.top-search.is-open .top-suggest { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.top-suggest-group { padding: 2px 0; }
.top-suggest-group + .top-suggest-group { margin-top: 8px; padding-top: 8px; border-top: 1px solid #eef2f6; }
.top-suggest-title { padding: 3px 8px 6px; color: #8792A3; font-size: 12px; font-weight: 500; }
.top-suggest-item {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #0B1220;
  display: grid;
  grid-template-columns: 30px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  text-align: left;
  cursor: pointer;
  transition: background-color .14s;
}
.top-suggest-item::after { content: "↵"; font-size: 12px; color: #a5adba; opacity: 0; transition: opacity .14s; }
.top-suggest-item:hover, .top-suggest-item.is-active { background: #f7f9fc; }
.top-suggest-item:hover::after, .top-suggest-item.is-active::after { opacity: 1; }
.top-suggest-icon {
  width: 30px; height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #f3f6fb;
  color: #5D6878;
  overflow: hidden;
}
.top-suggest-icon svg { width: 17px; height: 17px; stroke-width: 1.8; }
.top-suggest-icon.favicon img { width: 18px; height: 18px; object-fit: contain; display: block; }
.top-suggest-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-suggest-empty { padding: 14px 10px; color: #98a2b3; font-size: 13px; }

/* Top Actions */
.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.service-btn, .service-pill, .service-profile {
  height: 34px;
  border: 0;
  background: transparent;
  color: #344054;
  padding: 0 6px;
  font: 600 13px Onest, sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color .15s ease;
}
.service-btn svg, .service-pill svg, .service-profile svg {
  width: 18px; height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #667085;
}
.service-btn:hover, .service-pill:hover, .service-profile:hover { color: #315CF6; }
.service-btn:hover svg, .service-pill:hover svg, .service-profile:hover svg { color: #315CF6; }
.service-profile { padding-right: 0; }
.avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #667085;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}

/* ===================== CONTENT ===================== */
.content { overflow-y: auto; }

/* ===================== CATALOG PAGE ===================== */
.catalog-page {
  width: calc(100% - 56px);
  margin: 0 auto;
  padding: 28px 0 56px;
}

/* Hero */
.hero { text-align: center; margin: 0 auto 26px; max-width: 940px; }
.hero h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -.032em;
  color: #171b26;
}
.hero-sub {
  margin: 12px auto 0;
  max-width: 860px;
  color: #475467;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 450;
  letter-spacing: -.012em;
}
.pulse-metrics {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.pulse-metric {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #263042;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.014em;
  white-space: nowrap;
}
.pulse-dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #0E7A4F;
  flex: 0 0 auto;
  box-shadow: 0 0 8px rgba(14,122,79,.18);
  animation: lvPulseMetric 2.05s cubic-bezier(.16,1,.3,1) infinite;
}
.pulse-metric:nth-child(2) .pulse-dot { animation-delay: .34s; }
.pulse-metric:nth-child(3) .pulse-dot { animation-delay: .68s; }
@keyframes lvPulseMetric {
  0%,100% { transform: scale(1); opacity: 1; box-shadow: 0 0 8px rgba(14,122,79,.18); }
  45% { transform: scale(1.36); opacity: .72; box-shadow: 0 0 13px rgba(14,122,79,.32); }
  72% { transform: scale(1); opacity: 1; box-shadow: 0 0 8px rgba(14,122,79,.18); }
}

/* Catalog Search */
.catalog-search {
  width: min(900px, 100%);
  height: 56px;
  margin: 0 auto 34px;
  position: relative;
}
.catalog-search svg {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px; height: 22px;
  stroke: #8b98ad;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.catalog-search input {
  width: 100%;
  height: 56px;
  border-radius: 14px;
  border: 1px solid #dbe3ef;
  background: #fff;
  color: #222938;
  outline: none;
  padding: 0 20px 0 56px;
  font-size: 16px;
  font-weight: 560;
  font-family: Onest, sans-serif;
  box-shadow: 0 8px 22px rgba(16,24,40,.035);
}
.catalog-search input::placeholder { color: #98a2b3; }
.catalog-search input:focus,
.catalog-search.is-open input {
  border-color: #b9c6ff;
  box-shadow: 0 0 0 3px rgba(49,92,246,.08), 0 12px 28px rgba(16,24,40,.05);
}

/* Niche Suggest */
.niche-suggest {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  border: 1px solid rgba(226,232,240,.96);
  border-radius: 16px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 24px 60px rgba(15,23,42,.14), 0 6px 18px rgba(15,23,42,.06);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .16s cubic-bezier(.16,1,.3,1), transform .16s, visibility .16s;
  backdrop-filter: blur(10px);
}
.catalog-search.is-open .niche-suggest { opacity: 1; visibility: visible; transform: translateY(0); }
.niche-suggest-list { max-height: 360px; overflow: auto; padding: 6px; }
.niche-suggest-item {
  width: 100%;
  text-decoration: none;
  min-height: 42px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 8px 12px;
  cursor: pointer;
  color: #202636;
  transition: background-color .13s;
}
.niche-suggest-item:hover, .niche-suggest-item.active { background: #f6f8fc; }
.niche-suggest-path {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -.018em;
}
.niche-suggest-path span { color: #6674C8; font-weight: 650; }
.niche-suggest-count {
  height: 24px;
  min-width: 54px;
  border-radius: 999px;
  background: #f2f5fa;
  color: #667085;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 800;
}
.niche-suggest-empty { padding: 14px 16px; color: #667085; font-size: 14px; font-weight: 550; }

/* ===================== DIRECTORY ===================== */
.directory {
  position: relative;
  min-height: 265px;
  width: min(1240px, 100%);
  margin: 0 auto 58px;
}
.cat-grid {
  width: min(1280px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px 34px;
  position: relative;
  z-index: 1;
}
.cat-item {
  height: auto;
  min-height: 54px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  display: grid;
  grid-template-columns: 28px minmax(0,1fr) auto;
  align-items: center;
  column-gap: 12px;
  padding: 12px 14px;
  color: #202636;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s, background-color .16s, color .16s, box-shadow .16s;
}
.cat-item:hover {
  border-color: rgba(49,92,246,.18);
  background: rgba(255,255,255,.46);
  color: #315cf6;
  box-shadow: 0 8px 22px rgba(49,92,246,.045);
}
.cat-item:hover .cat-count { color: #7d8fb8; }
.cat-item.active {
  border-color: rgba(49,92,246,.26);
  background: rgba(255,255,255,.58);
  color: #315cf6;
  box-shadow: 0 10px 26px rgba(49,92,246,.06);
}
.cat-icon { width: 24px; height: 24px; display: grid; place-items: center; color: currentColor; }
.cat-icon svg {
  width: 21px; height: 21px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cat-title {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.22;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.018em;
  color: currentColor;
}
.cat-count {
  font-size: 14px;
  font-weight: 700;
  color: #8A97AD;
  min-width: 22px;
  text-align: right;
  margin-left: 0;
  justify-content: flex-end;
  display: inline-flex;
}
.cat-item.active .cat-count { color: #6f91ff; }

/* Flyout */
.flyout {
  position: absolute;
  z-index: 5;
  top: 0; left: 0;
  width: 396px;
  min-height: 175px;
  border: 1px solid #dbe4f3;
  border-radius: 20px;
  background: rgba(255,255,255,.95);
  box-shadow: var(--shadow-md);
  padding: 20px 20px 18px;
  display: none;
  max-height: 520px;
  /*
  max-height: calc(100vh - 150px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(49,92,246,.30) rgba(241,245,251,.88);
  */
}
.flyout::-webkit-scrollbar { width: 10px; }
.flyout::-webkit-scrollbar-track { background: rgba(241,245,251,.88); border-radius: 999px; margin: 14px 0; }
.flyout::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(49,92,246,.34), rgba(102,116,200,.28));
  border: 3px solid rgba(255,255,255,.92);
  border-radius: 999px;
}
.flyout.open { display: block; }
.flyout-head {
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) 28px;
  gap: 12px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid #edf1f7;
}
.flyout-icon {
  width: 38px; height: 38px;
  border-radius: 13px;
  background: #f1f5ff;
  color: #315cf6;
  display: grid;
  place-items: center;
}
.flyout-icon svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.flyout-title { font-size: 17px; font-weight: 750; letter-spacing: -.03em; color: #171b26; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flyout-sub { margin-top: 4px; font-size: 12px; font-weight: 700; color: #7c8798; letter-spacing: -.01em; }
/*.flyout-sub::after { content: ' технологий'; }*/
.flyout-close {
  width: 28px; height: 28px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #98a2b3;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flyout-close:hover { background: #f3f6fb; color: #667085; }
.subcat-list { padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.l2 { border-radius: 13px; overflow: hidden; }
.l2-link {
  height: 42px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: 12px;
  color: #202636;
  text-decoration: none;
  transition: background .16s, color .16s;
}
.l2-link:hover { background: #f7f9fc; color: #315CF6; }
.l2-link:hover .l2-count { background: #eef3ff; color: #315CF6; }
.l2-title { font-size: 14px; font-weight: 750; letter-spacing: -.018em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.l2-count {
  height: 24px;
  min-width: 58px;
  border-radius: 999px;
  background: #f2f5fa;
  color: #667085;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 800;
}

/* ===================== TABLE SECTION ===================== */
.table-section { margin: 0 auto; width: 100%; max-width: none; }
.section-title { text-align: center; margin-bottom: 22px; }
.section-title h2 { margin: 0; font-size: 28px; line-height: 1.12; font-weight: 600; letter-spacing: -.03em; color: #171b26; }
.section-title p { margin: 10px auto 0; color: #475467; font-size: 16px; line-height: 1.5; font-weight: 450; }
.table-card {
  border: 1px solid #e1e7f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* DataTables Custom Styling */
.table-card .dataTables_wrapper {
  padding: 0;
}
.table-card .dataTables_wrapper .dataTables_length,
.table-card .dataTables_wrapper .dataTables_filter {
  display: none; /* hidden — DataTables controls hidden per design */
}
.table-card .dataTables_wrapper .dataTables_info {
  display: none;
}
.table-card .dataTables_wrapper .dataTables_paginate {
  padding: 14px 18px;
  border-top: 1px solid var(--line2);
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}
.table-card .dataTables_wrapper .dataTables_paginate .paginate_button {
  height: 32px;
  min-width: 32px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #667085 !important;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  transition: background .14s, border-color .14s;
}
.table-card .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: #f4f6f9 !important;
  border-color: var(--line) !important;
  color: #202636 !important;
}
.table-card .dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: var(--lv-action) !important;
  border-color: var(--lv-action) !important;
  color: #fff !important;
}
.table-card .dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
  opacity: .4;
  cursor: default;
}

/* Table itself */
#topTable-wrapper table,
#nichesTable-wrapper table,
.top-table {
  width: 100% !important;
  border-collapse: collapse;
  table-layout: auto;
}
.top-table th, 
#topTable thead th,
#nichesTable thead th {
  height: 44px;
  background: #f7f9fc;
  border-bottom: 1px solid #e7edf5;
  color: #98a2b3;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .035em;
  text-transform: uppercase;
  text-align: left;
  padding: 0 18px;
  white-space: nowrap;
}
.top-table td, 
#topTable tbody td,
#nichesTable tbody td {
  height: 64px;
  border-bottom: 1px solid #edf1f7;
  padding: 10px 18px;
  color: #202636;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.012em;
  vertical-align: middle;
}
#topTable tbody tr:last-child td { border-bottom: 0; }
#topTable tbody tr:hover td { background: #fafbff; }

/* Sorting icons for DataTables */
#topTable thead th.sorting::before,
#topTable thead th.sorting_asc::before,
#topTable thead th.sorting_desc::before,
#topTable thead th.sorting::after,
#topTable thead th.sorting_asc::after,
#topTable thead th.sorting_desc::after {
  opacity: .4;
}

#nichesTable tbody tr:last-child td { border-bottom: 0; }
#nichesTable tbody tr:hover td { background: #fafbff; }

/* Sorting icons for DataTables */
#nichesTable thead th.sorting::before,
#nichesTable thead th.sorting_asc::before,
#nichesTable thead th.sorting_desc::before,
#nichesTable thead th.sorting::after,
#nichesTable thead th.sorting_asc::after,
#nichesTable thead th.sorting_desc::after {
  opacity: .4;
}

/* Tech cell */
.tech-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tech-favicon {
  width: 28px; height: 28px;
  flex: 0 0 28px;
  border: 1px solid #e4eaf3;
  border-radius: 8px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 2px rgba(17,24,39,.035);
}
.tech-favicon img { width: 18px; height: 18px; object-fit: contain; display: block; }
.tech-cell-main { min-width: 0; }
.niche-name { font-size: 15px; font-weight: 750; letter-spacing: -.02em; color: #171b26; }
.niche-path { margin-top: 3px; font-size: 12px; font-weight: 550; color: #667085; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.score {
  height: 28px;
  min-width: 42px;
  border-radius: 9px;
  background: #edf3ff;
  color: #244cf2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  padding: 0 8px;
}

/* Loader */
.lv-table-loader {
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: rgba(247,249,252,.38);
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s, visibility .18s;
}
.lv-table-loader.visible { opacity: 1; visibility: visible; }

/* ===================== Buttons ===================== */
.btn-lv {
  height: 34px;
  border: 1px solid var(--lv-action);
  background: var(--lv-action);
  color: #fff;
  border-radius: 7px;
  padding: 0 12px;
  font: 600 13px Onest, sans-serif;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(56,68,155,.20);
  transition: background .16s, box-shadow .16s;
}
.btn-lv:hover {
  background: var(--lv-action-hover);
  border-color: var(--lv-action-hover);
  box-shadow: 0 9px 22px rgba(56,68,155,.26);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1180px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px 30px; }
  .directory { min-height: 0; }
  .flyout { position: relative; left: auto; top: auto; margin: 18px auto 0; width: min(600px, 100%); min-height: 0; }
}
@media (max-width: 760px) {
  .catalog-page { width: calc(100% - 28px); padding-top: 22px; }
  .cat-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .hero-sub { font-size: 15px; }
  .table-card { overflow: auto; }
  .top-table { min-width: 880px; }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-dot { animation: none; }
}


.category-inner-box {
    overflow-x: auto;
    max-height: 410px;
    scrollbar-width: thin;
    scrollbar-color: rgba(49, 92, 246, .30) rgba(241, 245, 251, .88);
}


.dropdown-menu-profile {
    position: absolute;
    top: 5rem;
    background-color: white;
    border-radius: 8px;
    width: 230px;
    z-index: 1000;
    padding-top: 10px;
    padding-bottom: 10px;
    right: 10px;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.07);
}

.dropdown-menu-profile-rows {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--bs-gutter-y));
    margin-right: calc(-0.5 * var(--bs-gutter-x));
    margin-left: calc(-0.5 * var(--bs-gutter-x));
}
.big-menu-item-link {
    max-width: 300px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 17px;
    font-weight: 600;
    line-height: 23px;
    color: #111827;
}
.dropdown-menu-profile .big-menu-item-link {
    padding-bottom: 8px;
    padding-top: 8px;
    padding-left: 32px;
    padding-right: 15px;
}
.link-info-parts3 {
    color: #3d4148;
    text-decoration: none;
    font-size: 16px;
}
.service-btn, .service-pill, .service-profile {
    text-decoration: none;
}

.register-btn {
    border: 0;
    background: #335CFF;
    color: #fff;
    border-radius: 8px;
    padding-left: 10px;
    padding-right: 10px;
}
.register-btn:hover {
    background: #4f72ff;
    color: #fff;
}



/* Service topbar — LeadVector design-system pass */
.top-actions.service-actions{
  gap:10px;
}
.service-plan,
.service-menu-trigger{
  height:38px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:#344054;
  padding:0 10px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  font:600 13px/1 Onest,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  letter-spacing:-.012em;
  white-space:nowrap;
}
.service-plan{
  color:#4450B2;
  background:transparent;
  border-color:transparent;
}
.service-plan strong{
  font-weight:700;
}
.service-plan > svg,
.service-menu-trigger > svg:not(.service-chevron){
  width:18px;
  height:18px;
  flex:0 0 18px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.service-menu-wrap{
  position:relative;
}
.service-menu-trigger{
  cursor:pointer;
  transition:background .15s ease,color .15s ease,border-color .15s ease,box-shadow .15s ease;
}
.service-menu-trigger:hover,
.service-menu-wrap.is-open .service-menu-trigger{
  color:#4450B2;
  background:transparent;
  border-color:transparent;
}
.service-menu-trigger:focus-visible{
  outline:none;
  outline:2px solid rgba(68,80,178,.12);
}
.service-chevron{
  width:15px!important;
  height:15px!important;
  flex:0 0 15px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.9!important;
  transition:transform .16s ease;
}
.service-menu-wrap.is-open .service-chevron{
  transform:rotate(180deg);
}
.service-account-trigger{
  padding-right:6px;
}
.service-email{
  color:#202636;
  font-weight:650;
  letter-spacing:-.014em;
}
.service-menu-wrap.is-open .service-email,
.service-account-trigger:hover .service-email{
  color:#4450B2;
}
.service-account-trigger .avatar{
  width:24px;
  height:24px;
  flex:0 0 24px;
  background:#667085;
  font-size:9px;
}
.service-dropdown{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  z-index:120;
  min-width:230px;
  padding:8px;
  border:1px solid #e3e8f1;
  border-radius:12px;
  background:#fff;
  box-shadow:0 18px 42px rgba(15,23,42,.13),0 4px 12px rgba(15,23,42,.05);
  opacity:0;
  visibility:hidden;
  transform:translateY(-5px) scale(.99);
  transform-origin:100% 0;
  transition:opacity .16s ease,transform .16s ease,visibility .16s;
}
.service-menu-wrap.is-open .service-dropdown{
  opacity:1;
  visibility:visible;
  transform:translateY(0) scale(1);
}
.support-dropdown{
  min-width:248px;
}
.service-dropdown a,
.service-dropdown button{
  width:100%;
  min-height:40px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#344054;
  padding:8px 10px;
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  text-align:left;
  cursor:pointer;
  font:550 13px/1.25 Onest,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  letter-spacing:-.01em;
  transition:background .14s ease,color .14s ease;
}
.service-dropdown a:hover,
.service-dropdown button:hover{
  background:#f6f8fc;
  color:#4450B2;
}
.service-dropdown svg{
  width:17px;
  height:17px;
  flex:0 0 17px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.service-dropdown .service-logout{
  margin-top:4px;
  padding-top:9px;
  border-top:1px solid #edf1f6;
  border-radius:0 0 8px 8px;
}
@media(max-width:1260px){
  .service-plan{display:none;}
}
@media(max-width:980px){
  .service-email{display:none;}
}
.service-email {
    color: #475467 !important;
    font-weight: 600 !important;
}
.service-support-menu {
    display: inline-flex !important;
}
.service-plan-subtle {
    color: #98A2B3 !important;
    font-weight: 500 !important;
    margin-left: 4px !important;
}
.profile-icon {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #667085 !important;
}

.app.collapsed .sidebar-bottom .nav-item:hover::after {
    content: attr(data-title);
    position: absolute;
    left: 58px;
    top: 50%;
    transform: translateY(-50%);
    background: #111827;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    padding: 7px 9px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
    z-index: 60;
}


/* ----------- new spinner ------------ */
.loaderShell {
  position: relative;
  width: 84px;
  height: 84px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  place-items: center;
}

.loaderRing {
  position: absolute;
  inset: 0;

  animation: lvRingSpin 1.3s linear infinite;

  filter: drop-shadow(0 0 12px rgba(51,92,255,.18));
}

.loaderRing svg {
  width: 100%;
  height: 100%;
  display: block;
}

.loaderV {
  width: 36px;
  height: 36px;

  overflow: visible;
  display: block;

  filter: drop-shadow(0 8px 18px rgba(51,92,255,.18));
}

/* exact LV blue from production logo */
.loaderV .logoArrow path {
  fill: #5174FF;
}

/* right part */
.loaderV .logoArrowMoving {
  transform-box: fill-box;
  transform-origin: 50% 50%;

  animation: lvArrowMoveRight 1.12s cubic-bezier(.16,1,.3,1) infinite;

  filter: drop-shadow(0 0 8px rgba(51,92,255,.24));
}

/* left part */
.loaderV .logoArrow path:first-child {
  transform-box: fill-box;
  transform-origin: 50% 50%;

  animation: lvArrowMoveLeft 1.12s cubic-bezier(.16,1,.3,1) infinite;
}

@keyframes lvRingSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes lvArrowMoveRight {
  0%,100% {
    transform: translate(0,0);
  }

  42%,58% {
    transform: translate(4px,-4px);
  }
}

@keyframes lvArrowMoveLeft {
  0%,100% {
    transform: translate(0,0);
  }

  42%,58% {
    transform: translate(-3px,3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .loaderRing,
  .loaderV .logoArrowMoving,
  .loaderV .logoArrow path:first-child {
    animation: none !important;
  }
}
/* ------------------------- */


#payments-table thead th {
  height: 48px;
  padding: 0 22px;
  background: #F7F8FB;
  color: #667085;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: .015em;
  text-transform: none;
  text-align: left;
  border-bottom: 1px solid #E8ECF3;
}

.top-suggest-name span {
    color: #6674C8;
    font-weight: 650;
}

.top-suggest-meta {
    font-size: var(--fs-suggest-meta);
    line-height: 1.38;
    font-weight: 400;
    color: #687386;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -.008em;
}

.top-suggest-item {
    padding: 9px 9px;
}

.top-suggest-text {
    min-width: 0;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}