
.datahub {
  --dh-surface: #0E141F;
  position: relative;
  padding: 72px 0 120px;
  background: #050A18;
  overflow: hidden;
}

.datahub::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url('/assets/bg-starfield.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.datahub > * { position: relative; z-index: 1; }

.datahub__stage {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 28px;
}

.dh-cats {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dh-cat {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 14px;
  text-align: left;
  background: var(--dh-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #E7ECF3;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  font-family: inherit;
}
.dh-cat:hover {
  border-color: rgba(6, 160, 250, 0.45);
  background: color-mix(in srgb, #06A0FA 6%, var(--dh-surface));
  transform: translateY(-2px);
}
.dh-cat:focus-visible {
  outline: none;
  border-color: #06A0FA;
  box-shadow: 0 0 0 3px rgba(6, 160, 250, 0.25);
}
.dh-cat.active {
  border-color: rgba(6, 160, 250, 0.7);
  background: color-mix(in srgb, #06A0FA 12%, var(--dh-surface));
  box-shadow: 0 0 0 1px rgba(6, 160, 250, 0.4), 0 10px 28px -10px rgba(6, 160, 250, 0.45);
}
.dh-cat.active::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 3px;
  background: #06A0FA;
  box-shadow: 0 0 10px rgba(6, 160, 250, 0.8);
}

.dh-cat {
  --cat-color: #06A0FA;
}
.dh-cat:hover {
  border-color: color-mix(in srgb, var(--cat-color) 50%, transparent);
  background: color-mix(in srgb, var(--cat-color) 8%, var(--dh-surface));
}
.dh-cat.active {
  border-color: color-mix(in srgb, var(--cat-color) 70%, transparent);
  background: color-mix(in srgb, var(--cat-color) 13%, var(--dh-surface));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--cat-color) 40%, transparent),
              0 10px 28px -10px color-mix(in srgb, var(--cat-color) 55%, transparent);
}
.dh-cat.active::before { background: var(--cat-color); box-shadow: 0 0 10px var(--cat-color); }

.dh-cat__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--cat-color) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--cat-color) 28%, transparent);
  color: var(--cat-color);
  transition: background 0.18s ease, color 0.18s ease;
}
.dh-cat.active .dh-cat__icon {
  background: var(--cat-color);
  color: #ffffff;
  border-color: var(--cat-color);
}
.dh-cat__icon svg { width: 19px; height: 19px; }

.dh-cat__body { min-width: 0; flex: 1; }
.dh-cat__label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
  color: #F2F5FA;
}
.dh-cat__meta {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  font-weight: 500;
  color: #7C8AA0;
}
.dh-cat.active .dh-cat__meta { color: #7FC4FF; }

.dh-cat--feature {
  --cat-color: #F43F5E;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--cat-color) 16%, var(--dh-surface)), color-mix(in srgb, var(--cat-color) 5%, var(--dh-surface)));
  border-color: color-mix(in srgb, var(--cat-color) 42%, transparent);
  box-shadow: 0 10px 30px -16px color-mix(in srgb, var(--cat-color) 60%, transparent);
}

.dh-map {
  --dh-accent: #06A0FA;
  position: relative;
  border-radius: 16px;
  border: 3px solid color-mix(in srgb, var(--dh-accent) 60%, rgba(255,255,255,0.15));
  background:
    radial-gradient(130% 120% at 50% -10%, color-mix(in srgb, var(--dh-accent) 18%, transparent), transparent 60%),
    radial-gradient(90% 90% at 50% 110%, rgba(124, 92, 246, 0.10), transparent 60%),
    linear-gradient(160deg, #0B1633 0%, #081026 60%, #0A1430 100%);
  overflow: visible;
  box-shadow: 0 24px 70px -26px color-mix(in srgb, var(--dh-accent) 40%, rgba(0,0,0,0.8)),
              inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  min-height: 552px;
  display: flex;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.dh-map__inner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}
.dh-map__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
}
.dh-map__canvas svg { width: 100%; height: 100%; }
.jvm-container { background: transparent !important; touch-action: pan-x pan-y; }

.dh-map .jvm-region {
  cursor: pointer;
  transition: fill 0.18s ease;
}

#dh-map-canvas path[data-code="UZ"] {
  fill: none !important;
  stroke: #06A0FA !important;
  stroke-width: 1 !important;
}

.dh-map .jvm-marker {
  cursor: pointer;
  stroke: #060E20;
  stroke-width: 1.4;
  transition: fill 0.15s ease;
}

.dh-map .dh-acc-dot {
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.12s ease;
}
.dh-map .dh-acc-dot:hover {
  transform: scale(1.45);
  stroke: #ffffff;
  stroke-width: 1;
}

.dh-map .jvm-zoom-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  line-height: 1;
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  left: 14px;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.dh-map .jvm-zoom-btn:hover {
  background: color-mix(in srgb, var(--dh-accent) 80%, transparent);
  border-color: #ffffff;
  color: #ffffff;
}
.dh-map .jvm-zoom-btn.jvm-zoomin { top: 14px; }
.dh-map .jvm-zoom-btn.jvm-zoomout { top: 52px; }

.jvm-tooltip {
  --dh-tip-accent: #06A0FA;
  position: absolute;
  z-index: 1200;
  pointer-events: none;
  max-width: 264px;
  white-space: normal;
  overflow-wrap: anywhere;
  display: none;
  padding: 13px 15px;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--dh-tip-accent) 12%, rgba(11,17,38,0.98)), rgba(8, 13, 30, 0.98));
  border: 1px solid color-mix(in srgb, var(--dh-tip-accent) 50%, transparent);
  box-shadow: 0 18px 44px -14px rgba(0, 0, 0, 0.88),
              0 0 24px -6px color-mix(in srgb, var(--dh-tip-accent) 45%, transparent);
  color: #B7C0CE;
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.jvm-tooltip.active { display: block; }

.dh-tip__country {
  font-size: 12.5px;
  font-weight: 600;
  color: #E7ECF3;
  letter-spacing: 0.2px;
}

.dh-tip__type {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--dh-tip-accent, #06A0FA);
  margin-bottom: 6px;
}
.dh-tip__name {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 10px;
}
.dh-tip__row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #B7C0CE;
  margin-top: 6px;
}
.dh-tip__row svg {
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  margin-top: 2px;
  color: color-mix(in srgb, var(--dh-tip-accent) 45%, #8694a8);
}
.dh-tip__row > span {
  min-width: 0;
}

.dh-tip__hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px solid color-mix(in srgb, var(--dh-tip-accent) 22%, transparent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: color-mix(in srgb, var(--dh-tip-accent) 62%, #cdd6e2);
}
.dh-tip__hint svg {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
}

.dh-map .jvm-marker { cursor: pointer; }

.dh-card-backdrop {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: 13px;
  background: rgba(4, 8, 20, 0.58);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.dh-card-backdrop[hidden] { display: none; }
.dh-card-backdrop.is-open { opacity: 1; }

.dh-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: 18px 18px 16px;
  border-radius: 16px;
  font-family: 'Inter', sans-serif;
  color: #B7C0CE;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--dh-tip-accent, #FBBF24) 12%, rgba(11, 17, 38, 0.99)), rgba(8, 13, 30, 0.99));
  border: 1px solid color-mix(in srgb, var(--dh-tip-accent, #FBBF24) 45%, transparent);
  box-shadow: 0 22px 60px -18px rgba(0, 0, 0, 0.85),
              0 0 30px -8px color-mix(in srgb, var(--dh-tip-accent, #FBBF24) 40%, transparent);
  transform: translateY(8px) scale(0.97);
  transition: transform 0.2s ease;
}
.dh-card-backdrop.is-open .dh-card { transform: translateY(0) scale(1); }

.dh-card__body { padding-right: 26px; }

.dh-card__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  color: #9AA6B6;
}
.dh-card__close svg { width: 15px; height: 15px; }
.dh-card__close:active { background: rgba(255, 255, 255, 0.14); color: #fff; }

.dh-card__search {
  margin-top: 14px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #0A0F1E;
  background: var(--dh-tip-accent, #FBBF24);
  box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--dh-tip-accent, #FBBF24) 70%, transparent);
}
.dh-card__search svg { width: 15px; height: 15px; }
.dh-card__search:active { transform: translateY(1px); }

.dh-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
}
.dh-legend[hidden] { display: none; }
.dh-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #93A0B2;
}
.dh-legend__swatch {
  width: 22px;
  height: 13px;
  border-radius: 3px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.dh-legend__swatch--host { background: #2F6FE0; }
.dh-legend__swatch--accredited {
  background-color: #B7CFF2;
  background-image: repeating-linear-gradient(
    45deg,
    #2F6FE0 0, #2F6FE0 2.2px,
    transparent 2.2px, transparent 6px
  );
}

.dh-map-toggles {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.dh-map-toggles[hidden] { display: none; }
.dh-map-toggles__label { font-size: 13px; color: #93A0B2; margin-right: 2px; }
.dh-mt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #C2CCDA;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 8px 15px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.dh-mt b { color: #7C8AA0; font-weight: 600; }
.dh-mt__dot { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid #fff; flex-shrink: 0; }
.dh-mt--major .dh-mt__dot { background: #F59E0B; }
.dh-mt--minor .dh-mt__dot { background: #2E90FA; }
.dh-mt:not(.is-on) { opacity: 0.5; }
.dh-mt:not(.is-on) .dh-mt__dot { background: transparent; }
.dh-mt.is-on.dh-mt--major { border-color: rgba(245, 158, 11, 0.55); background: rgba(245, 158, 11, 0.12); color: #fff; }
.dh-mt.is-on.dh-mt--major b { color: #F5C26B; }
.dh-mt.is-on.dh-mt--minor { border-color: rgba(46, 144, 250, 0.55); background: rgba(46, 144, 250, 0.12); color: #fff; }
.dh-mt.is-on.dh-mt--minor b { color: #8FC2FF; }

.datahub__tools-head {
  text-align: center;
  margin: 64px 0 28px;
}
.datahub__tools-head h2 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: #ffffff;
  margin-bottom: 8px;
}
.datahub__tools-head p {
  font-size: 15px;
  color: #94A0B2;
}

.datahub__tools {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.dh-tool {
  --tool-color: #06A0FA;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 26px 26px;
  min-height: 150px;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--tool-color) 9%, transparent), transparent 55%),
    var(--dh-surface);
  border: 1px solid color-mix(in srgb, var(--tool-color) 18%, rgba(255,255,255,0.08));
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.dh-tool::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(380px 220px at 100% 0%, color-mix(in srgb, var(--tool-color) 16%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.dh-tool--live:hover {
  border-color: color-mix(in srgb, var(--tool-color) 50%, transparent);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--tool-color) 70%, transparent);
}
.dh-tool--live:hover::after { opacity: 1; }

.datahub__tools .dh-tool:nth-child(1) { --tool-color: #06A0FA; }
.datahub__tools .dh-tool:nth-child(2) { --tool-color: #34D399; }
.datahub__tools .dh-tool:nth-child(3) { --tool-color: #FBBF24; }
.datahub__tools .dh-tool:nth-child(4) { --tool-color: #A78BFA; }

.dh-tool__icon {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--tool-color) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--tool-color) 26%, transparent);
  color: var(--tool-color);
}
.dh-tool__icon svg { width: 26px; height: 26px; }

.dh-tool__body { flex: 1; min-width: 0; }
.dh-tool__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}
.dh-tool__desc {
  font-size: 14px;
  line-height: 1.55;
  color: #93A0B3;
  margin: 0;
}
.dh-tool__arrow {
  position: absolute;
  top: 26px;
  right: 24px;
  color: #4E5C72;
  transition: transform 0.2s ease, color 0.2s ease;
}
.dh-tool--live:hover .dh-tool__arrow {
  transform: translate(3px, -3px);
  color: #06A0FA;
}

@media (max-width: 1040px) {
  .datahub__stage { grid-template-columns: 1fr; }
  .dh-map { order: -1; }
  .dh-cats--left {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
  }}

@media (max-width: 720px) {
  .datahub { padding: 48px 0 80px; }
  .datahub__tools { grid-template-columns: 1fr; }
  .dh-map { min-height: 300px; }
  .dh-cats--left { grid-template-columns: 1fr; }}
@media (max-width: 640px) {
  .datahub { padding: 24px 0 32px; }
  .datahub__stage { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 0; }
  .dh-cats--left { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .dh-cat { min-height: 56px; padding: 8px 18px; }
  .dh-cat:hover { transform: none; }
  .dh-cat__label { font-size: 14.5px; }
  .dh-cat__meta { font-size: 12.5px; }

  .dh-map-toggles,
  .dh-legend { justify-content: flex-start; margin-top: 16px; }
  .dh-map-toggles { gap: 8px; }
  .dh-map-toggles__label { flex: 0 0 100%; margin: 0; font-size: 12.5px; }
  .dh-mt { min-height: 34px; gap: 6px; padding: 0 12px; font-size: 12.5px; }
  .dh-mt__dot { width: 9px; height: 9px; }

  .datahub__tools-head { text-align: left; margin: 40px 0 16px; }
  .datahub__tools-head h2 { font-size: 24px; line-height: 1.3; letter-spacing: -0.5px; margin: 0; }
  .datahub__tools { gap: 12px; }

  .dh-tool {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 0;
    padding: 18px;
  }
  .dh-tool--live:hover { transform: none; }
  .dh-tool__body { display: contents; }
  .dh-tool__icon { grid-column: 1; grid-row: 1; width: 40px; height: 40px; border-radius: 11px; }
  .dh-tool__icon svg { width: 20px; height: 20px; }
  .dh-tool__title { grid-column: 2; grid-row: 1; margin: 0; padding-right: 28px; font-size: 17px; line-height: 1.3; }
  .dh-tool__desc { grid-column: 1 / -1; grid-row: 2; font-size: 15px; line-height: 1.6; }
  .dh-tool__arrow { top: 29px; right: 18px; }
}

@media (max-width: 360px) {
  .dh-mt { gap: 5px; padding: 0 9px; font-size: 12px; }
}
