.badge-hq-page {
  --badge-bg: #071b33;
  --badge-panel: rgba(10, 31, 58, 0.88);
  --badge-panel-2: rgba(12, 42, 78, 0.92);
  --badge-border: rgba(105, 203, 255, 0.42);
  --badge-border-hot: rgba(255, 210, 86, 0.75);
  --badge-text: #eef8ff;
  --badge-muted: #b8d6ec;
  --badge-cyan: #3ed5ff;
  --badge-gold: #ffd35e;
  --badge-red: #df263b;
  --badge-red-dark: #8e1020;
  --badge-blue: #0e80cf;
  color: var(--badge-text);
  padding-bottom: 30px;
}

.badge-hq-page a,
.badge-hq-page a:hover,
.badge-hq-page a:focus {
  color: inherit;
  text-decoration: none;
}

.badge-hq-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(106, 197, 255, 0.35);
  border-radius: 14px;
  background:
    radial-gradient(circle at top left, rgba(66, 191, 255, 0.28), transparent 34%),
    radial-gradient(circle at 85% 15%, rgba(255, 49, 84, 0.22), transparent 28%),
    linear-gradient(145deg, rgba(5, 16, 34, 0.96), rgba(6, 36, 72, 0.92));
  box-shadow: 0 0 28px rgba(46, 182, 255, 0.18), inset 0 0 34px rgba(0, 0, 0, 0.28);
}

.badge-hq-shell:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent 82%);
}

.badge-hero {
  position: relative;
  min-height: 220px;
  padding: 28px 22px 24px;
  background:
    linear-gradient(90deg, rgba(3, 13, 29, 0.5), rgba(7, 33, 66, 0.5), rgba(3, 13, 29, 0.5)),
    url('/imgs/hero/badge_hq/hq_command_center.jpg');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(126, 211, 255, 0.28);
}

.badge-hero:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(62, 213, 255, 0.85), rgba(255, 211, 94, 0.85), rgba(62, 213, 255, 0.85), transparent);
}

.badge-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 18px;
  align-items: center;
}

.badge-logo-wrap {
  flex: 0 0 auto;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle, rgba(255, 212, 79, 0.28), transparent 52%),
    linear-gradient(145deg, rgba(18, 93, 160, 0.9), rgba(4, 19, 42, 0.95));
  border: 1px solid rgba(255, 211, 94, 0.65);
  box-shadow: 0 0 25px rgba(255, 211, 94, 0.22), inset 0 0 18px rgba(62, 213, 255, 0.16);
}

.badge-logo-wrap img {
  width: 66px;
  height: 66px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 211, 94, 0.45));
}

.badge-hero-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.badge-kicker {
  display: inline-block;
  margin-bottom: 7px;
  padding: 4px 10px;
  color: #061628;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--badge-gold), #fff0a8);
  box-shadow: 0 0 14px rgba(255, 211, 94, 0.28);
}

.badge-hero h1 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(62, 213, 255, 0.5);
}

.badge-hero p {
  max-width: 850px;
  margin: 0;
  color: cornsilk;
  font-size: 15px;
  line-height: 1.45;
}

.badge-section {
  position: relative;
  z-index: 1;
  padding: 18px 16px 0;
}

.badge-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 14px;
  color: #f8fcff;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(62, 213, 255, 0.3);
}

.badge-section-title:after {
  content: "";
  height: 1px;
  flex: 1 1 auto;
  background: linear-gradient(90deg, rgba(62, 213, 255, 0.62), transparent);
}

.badge-card {
  display: block;
  position: relative;
  min-height: 206px;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(126, 211, 255, 0.3);
  background-color: rgba(9, 30, 58, 0.9);
  background-image: var(--card-bg), linear-gradient(145deg, rgba(17, 73, 125, 0.9), rgba(4, 17, 38, 0.98));
  background-size: contain;
  background-position: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.26), inset 0 0 24px rgba(0, 0, 0, 0.26);
  transform: translateZ(0);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.badge-card:hover,
.badge-card:focus {
  transform: translateY(-3px);
  border-color: rgba(255, 211, 94, 0.78);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.36), 0 0 18px rgba(62, 213, 255, 0.22), inset 0 0 24px rgba(0, 0, 0, 0.22);
}

.badge-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(2, 11, 25, 0.12), rgba(2, 11, 25, 0.82)),
    linear-gradient(135deg, rgba(62, 213, 255, 0.16), transparent 38%, rgba(255, 211, 94, 0.11));
  z-index: 0;
}

.badge-card:after {
  content: "";
  position: absolute;
  top: 12px;
  right: -42px;
  width: 128px;
  height: 22px;
  background: rgba(255, 255, 255, 0.08);
  transform: rotate(38deg);
  z-index: 1;
}

.badge-card-content {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 56px 12px 12px;
  background: linear-gradient(to bottom, transparent, rgba(4, 16, 35, 0.94) 48%, rgba(4, 16, 35, 0.98));
  text-shadow: 1px 1px 1px #000;
}

.badge-card-title {
  margin: 0 0 7px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.1;
  font-weight: bold;
  letter-spacing: 0.4px;
  text-shadow: 0 1px 7px rgba(0, 0, 0, 0.8);
}

.badge-card-desc {
  min-height: 42px;
  margin: 0 0 12px;
  color: var(--badge-muted);
  font-size: 13px;
  line-height: 1.3;
}

.badge-card-cta {
  display: block;
  width: 100%;
  padding: 9px 10px;
  color: #ffffff;
  font-size: 13px;
  font-weight: bold;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.16), transparent 48%),
    linear-gradient(90deg, var(--badge-red-dark), var(--badge-red), var(--badge-red-dark));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 0 16px rgba(223, 38, 59, 0.16);
}

.badge-card:hover .badge-card-cta,
.badge-card:focus .badge-card-cta {
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent 48%),
    linear-gradient(90deg, #b91428, #f53a51, #b91428);
}
.badge-card:hover .badge-card-content,
.badge-card:focus .badge-card-content {
  background: unset;
  font-weight: bold;
}

.badge-card.feature-card {
  min-height: 262px;
}

.badge-card.feature-card .badge-card-content {
  padding-top: 86px;
}

.badge-card-statline {
  margin-top: 8px;
  color: #d7ecfb;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}

.badge-card-statline a {
  color: #ffe281;
  text-decoration: underline;
}

.badge-card-statline a:hover {
  color: #ffffff;
}

.badge-event-panel,
.badge-multiverse-panel {
  position: relative;
  z-index: 1;
  margin: 16px 16px 0;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 211, 94, 0.38);
  background: linear-gradient(145deg, rgba(28, 54, 98, 0.92), rgba(8, 25, 50, 0.94));
  box-shadow: inset 0 0 18px rgba(255, 211, 94, 0.06);
}

.badge-event-logo {
  max-width: 100%;
  max-height: 112px;
  object-fit: contain;
  margin-bottom: 8px;
}

.badge-event-link {
  display: block;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(0, 0, 0, 0.18);
}

.badge-event-link:hover {
  border-color: rgba(255, 211, 94, 0.65);
}

.badge-multiverse-panel .btn,
.badge-event-panel .btn {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.14), transparent 50%),
    linear-gradient(90deg, #8e1020, #df263b, #8e1020);
  color: #ffffff;
  font-weight: bold;
}

.multiverse_portal {
  max-width: 160px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 14px rgba(123, 88, 255, 0.55));
}

.badge-hq-page .modal-content {
  background: #0d2848;
  color: #eef8ff;
  border: 1px solid rgba(126, 211, 255, 0.35);
}

@media (max-width: 767px) {
  .badge-hq-page {
    padding-left: 0;
    padding-right: 0;
  }

  .badge-hq-shell {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .badge-hero {
    padding: 20px 14px;
  }

  .badge-hero-inner {
    display: block;
    text-align: center;
  }

  .badge-logo-wrap {
    margin: 0 auto 12px;
    width: 82px;
    height: 82px;
  }

  .badge-logo-wrap img {
    width: 58px;
    height: 58px;
  }

  .badge-hero h1 {
    font-size: 28px;
    letter-spacing: 3px;
  }

  .badge-hero p {
    font-size: 14px;
  }

  .badge-section {
    padding: 14px 10px 0;
  }

  .badge-section-title {
    margin-left: 4px;
    margin-right: 4px;
    font-size: 15px;
  }

  .badge-card {
    min-height: 190px;
    margin-bottom: 12px;
    border-radius: 12px;
  }

  .badge-card.feature-card {
    min-height: 230px;
  }

  .badge-card-title {
    font-size: 16px;
  }

  .badge-card-desc {
    min-height: 50px;
    font-size: 12px;
  }

  .badge-event-panel,
  .badge-multiverse-panel {
    margin: 12px 10px 0;
  }
}

@media (max-width: 420px) {
  .badge-card-desc {
    min-height: 64px;
  }

  .badge-card-content {
    padding-left: 9px;
    padding-right: 9px;
  }
}
