body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  background: #f2f1fb;
  color: #fff;
}

.hub-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 34px 16px 60px;
}

.hub-wrap h1 {
  color: #5124bf;
  text-align: center;
  margin: 0 0 18px;
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.hub-viewport {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(104, 73, 180, 0.2);
  box-shadow: 0 20px 55px rgba(43, 25, 89, 0.18);
}

.hub-top {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  flex-wrap: wrap;
  row-gap: 8px;
}

.hub-switch-label {
  color: #6e3be8;
  font-size: 12px;
  font-weight: 700;
}

.hub-switches {
  display: inline-flex;
  gap: 8px;
}

.lang-wrap {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-label {
  color: #ecf0ff;
  font-size: 11px;
  font-weight: 700;
}

.lang-switcher {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.85);
  color: #24304b;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 8px;
}

.switch {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.82);
  color: #4b5563;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.switch.active {
  background: #6f2cff;
  color: #fff;
}

.hub-slide {
  min-height: 620px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hub-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.35));
}

.hub-card {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  width: min(760px, calc(100% - 42px));
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(13px);
  padding: 20px;
}

.hub-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 14px;
  font-weight: 700;
}

.hub-card-head span {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
}

.hub-actions {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.hub-action {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  padding: 10px 12px;
}

.hub-action:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hub-action .icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  font-weight: 700;
}

.hub-action .label {
  font-size: 18px;
  font-weight: 700;
}

.hub-action .arrow {
  margin-left: auto;
  font-size: 22px;
  opacity: 0.75;
}

.hub-tip {
  margin: 10px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
}

.hub-testing-page {
  min-height: 100vh;
  background: linear-gradient(145deg, #190f40, #0f1633 50%, #191044);
}

.hub-testing-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 38px 16px 60px;
}

.hub-testing-wrap header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hub-testing-wrap header img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

.hub-testing-wrap h1 {
  margin: 0;
  color: #fff;
  font-size: 36px;
}

.lang-wrap.testing {
  margin-left: auto;
}

.test-block {
  border-radius: 16px;
  border: 1px solid rgba(156, 125, 255, 0.32);
  background: rgba(105, 70, 190, 0.14);
  padding: 16px;
  margin-bottom: 18px;
}

.test-block.dark {
  border-color: rgba(137, 137, 153, 0.35);
  background: rgba(11, 14, 28, 0.48);
}

.test-block h2 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #d9cbff;
}

.test-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.test-chip {
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(189, 167, 255, 0.45);
  color: #f0e8ff;
  background: rgba(75, 44, 161, 0.36);
  font-weight: 600;
  font-size: 13px;
}

.test-chip.dark {
  border-color: rgba(145, 145, 156, 0.4);
  color: #d8dae5;
  background: rgba(33, 37, 54, 0.56);
}

@media (max-width: 820px) {
  .hub-slide {
    min-height: 540px;
  }

  .hub-card {
    width: calc(100% - 26px);
    bottom: 14px;
    padding: 14px;
  }

  .hub-action .label {
    font-size: 15px;
  }

  .hub-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .hub-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .lang-wrap {
    margin-left: 0;
  }
}
