/* Final activity-page skin: keep the existing layout, align visuals with the DD tech theme. */
:root {
  --dd-page: #030713;
  --dd-surface: #081126;
  --dd-surface-soft: #0c1730;
  --dd-border: rgba(83, 144, 255, 0.26);
  --dd-border-strong: rgba(72, 210, 255, 0.42);
  --dd-text: #f7fbff;
  --dd-muted: rgba(222, 234, 255, 0.72);
  --dd-cyan: #55e5ff;
  --dd-blue: #147cff;
  --dd-violet: #7357ff;
  --dd-gold: #ffd96b;
  --activity-top-height: 86px;
  --activity-nav-height: 88px;
}

.activity-page,
.wallet-page {
  min-height: 100dvh;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(circle at 50% -8%, rgba(57, 159, 255, 0.16), transparent 34%),
    linear-gradient(180deg, #030713 0%, #070d1d 48%, #030713 100%) !important;
  color: var(--dd-text);
  font-family: Inter, "SF Pro Display", "PingFang SC", "HarmonyOS Sans", "MiSans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.activity-shell,
.wallet-shell {
  min-height: 100dvh;
  padding-top: calc(var(--activity-top-height) + 18px + env(safe-area-inset-top)) !important;
  padding-bottom: calc(var(--activity-nav-height) + 42px + env(safe-area-inset-bottom)) !important;
  background:
    radial-gradient(circle at 88% 4%, rgba(115, 87, 255, 0.18), transparent 28%),
    radial-gradient(circle at 8% 16%, rgba(85, 229, 255, 0.12), transparent 28%),
    linear-gradient(180deg, #061024 0%, #09152d 48%, #030713 100%) !important;
}

.activity-topbar {
  position: fixed !important;
  z-index: 210 !important;
  left: 50% !important;
  top: 0 !important;
  width: min(100vw, 813px) !important;
  min-height: calc(var(--activity-top-height) + env(safe-area-inset-top)) !important;
  padding: max(13px, env(safe-area-inset-top)) 16px 12px !important;
  background:
    radial-gradient(circle at 85% 0, rgba(85, 229, 255, 0.1), transparent 38%),
    rgba(7, 14, 32, 0.94) !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(20px);
  transform: translateX(-50%) !important;
  grid-template-columns: minmax(0, 1fr) auto auto auto auto !important;
  border-bottom: 1px solid rgba(85, 229, 255, 0.18) !important;
}

.activity-brand {
  transform: none !important;
  text-shadow: none !important;
  gap: 6px !important;
  min-width: 0;
}

.brand-spade {
  background: linear-gradient(180deg, #7df4ff 0%, #238cff 55%, #7357ff 100%) !important;
  filter: drop-shadow(0 0 12px rgba(85, 229, 255, 0.42)) !important;
}

.activity-brand strong {
  color: transparent !important;
  background: linear-gradient(135deg, #66e9ff 0%, #2b8fff 58%, #8a78ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-style: italic;
  letter-spacing: 0;
  white-space: nowrap;
}

.activity-brand b {
  color: #ffffff !important;
  font-style: italic;
  letter-spacing: 0;
  white-space: nowrap;
}

.custom-hero-carousel {
  touch-action: pan-y;
  cursor: grab;
  pointer-events: auto;
}

.promo-dots {
  z-index: 7 !important;
  pointer-events: auto;
}

.promo-dots span {
  cursor: pointer;
  pointer-events: auto;
}

.activity-balance {
  position: relative;
  border: 1px solid var(--dd-border-strong) !important;
  border-radius: 16px !important;
  min-height: 44px !important;
  gap: 8px !important;
  padding: 0 7px 0 10px !important;
  background:
    radial-gradient(circle at 100% 0, rgba(85, 229, 255, 0.18), transparent 34%),
    rgba(7, 18, 42, 0.86) !important;
  box-shadow:
    inset 0 0 18px rgba(85, 229, 255, 0.08),
    0 12px 28px rgba(0, 0, 0, 0.18) !important;
}

.activity-balance::before {
  content: "";
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    linear-gradient(#fff 0 0) 0 0 / 100% 100% no-repeat,
    repeating-linear-gradient(180deg, #c82127 0 2px, #ffffff 2px 4px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

.activity-balance::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 50%;
  width: 10px;
  height: 11px;
  border-radius: 1px;
  background: #2452a4;
  transform: translateY(-50%);
}

.activity-balance span {
  color: #ffffff !important;
  font-weight: 850 !important;
}

.activity-balance button,
.activity-gold-btn,
.activity-detail-cta {
  background: linear-gradient(135deg, #55e5ff 0%, #147cff 56%, #7357ff 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 28px rgba(20, 124, 255, 0.28) !important;
}

.activity-balance button {
  position: relative;
  width: 40px !important;
  height: 40px !important;
  border: 1px solid rgba(85, 229, 255, 0.4) !important;
  border-radius: 10px !important;
  font-size: 0 !important;
}

.activity-balance button::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 12px;
  width: 21px;
  height: 15px;
  border: 2.5px solid #ffffff;
  border-radius: 4px;
  transform: rotate(-7deg);
}

.activity-balance button::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 22px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffffff;
}

.activity-bell,
.activity-gift,
.activity-profile {
  border-color: rgba(85, 229, 255, 0.34) !important;
  background:
    radial-gradient(circle at 50% 0, rgba(85, 229, 255, 0.14), transparent 44%),
    rgba(7, 18, 42, 0.78) !important;
  color: #bdefff !important;
  box-shadow: inset 0 0 16px rgba(85, 229, 255, 0.05) !important;
}

.activity-gift {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(85, 229, 255, 0.34);
  border-radius: 50%;
  color: #aeb8cd;
}

.activity-gift::before {
  content: "";
  width: 24px;
  height: 22px;
  border: 3px solid currentColor;
  border-radius: 5px;
  background:
    linear-gradient(currentColor 0 0) center / 4px 100% no-repeat,
    linear-gradient(currentColor 0 0) center 38% / 100% 4px no-repeat;
}

.activity-gift span {
  position: absolute;
  right: -5px;
  top: -7px;
  display: grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  border: 2px solid #071226;
  border-radius: 999px;
  background: #147cff;
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
}

.activity-bell span {
  border: 2px solid #071226;
  background: #ff4b5f !important;
}

.activity-hero-card {
  min-height: clamp(220px, 42vw, 270px);
  touch-action: pan-y;
  cursor: grab;
  border: 1px solid var(--dd-border) !important;
  border-radius: 22px !important;
  background:
    linear-gradient(90deg, rgba(4, 8, 20, 0.96) 0%, rgba(7, 14, 32, 0.82) 40%, rgba(7, 14, 32, 0.22) 78%),
    var(--activity-hero-image) right center / cover no-repeat !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 22px 48px rgba(0, 0, 0, 0.32) !important;
}

.activity-hero-card::before {
  right: -70px !important;
  top: -70px !important;
  width: 230px !important;
  height: 230px !important;
  background: radial-gradient(circle, rgba(85, 229, 255, 0.22), transparent 68%) !important;
  opacity: 1 !important;
  filter: none !important;
}

.activity-hero-card::after {
  right: -56px !important;
  bottom: -72px !important;
  width: 280px !important;
  height: 180px !important;
  background: radial-gradient(ellipse, rgba(115, 87, 255, 0.32), transparent 66%) !important;
  opacity: 1 !important;
  filter: none !important;
}

.activity-hero-copy {
  padding: clamp(38px, 7vw, 54px) clamp(28px, 7vw, 46px) !important;
  max-width: 70%;
}

.activity-hero-copy h1,
.activity-hero-copy p {
  color: #ffffff !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.42) !important;
}

.activity-hero-copy h1 {
  font-size: clamp(28px, 6.8vw, 42px) !important;
  line-height: 1.06 !important;
}

.activity-hero-copy p {
  margin-top: 14px !important;
  color: rgba(255, 255, 255, 0.84) !important;
  font-size: clamp(20px, 5.2vw, 32px) !important;
  line-height: 1.18 !important;
}

.activity-wheel {
  display: none !important;
}

.activity-details-pill {
  top: 28px !important;
  right: 24px !important;
  min-height: 46px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 14px !important;
  background: rgba(8, 17, 38, 0.76) !important;
  color: #ffffff !important;
  box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: blur(14px);
}

.activity-details-pill:hover,
.activity-outline-btn:hover,
.activity-gold-btn:hover,
.activity-detail-cta:hover,
.activity-balance button:hover {
  transform: translateY(-2px);
}

.activity-slider-dots button {
  display: block;
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24) !important;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.activity-slider-dots button.active {
  width: 42px;
  background: linear-gradient(135deg, #55e5ff, #147cff) !important;
}

.activity-card {
  margin-bottom: calc(var(--activity-nav-height) + env(safe-area-inset-bottom));
  border: 1px solid var(--dd-border) !important;
  border-radius: 24px 24px 0 0 !important;
  background:
    radial-gradient(circle at 100% 0, rgba(85, 229, 255, 0.08), transparent 32%),
    rgba(5, 12, 28, 0.92) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 -12px 44px rgba(0, 0, 0, 0.22) !important;
}

.activity-section,
.free-section,
.activity-deposit-panel,
.activity-list-card,
.activity-bonus-steps {
  display: revert !important;
}

.activity-deposit-panel,
.activity-list-card {
  display: grid !important;
}

.activity-bonus-steps {
  display: grid !important;
}

.activity-section h2 {
  color: #ffffff !important;
  font-weight: 820 !important;
  letter-spacing: 0 !important;
}

.activity-section h2::before {
  width: 4px !important;
  background: linear-gradient(180deg, #55e5ff, #7357ff) !important;
  box-shadow: 0 0 18px rgba(85, 229, 255, 0.42);
}

.activity-deposit-panel,
.activity-list-card {
  border: 1px solid rgba(85, 229, 255, 0.2) !important;
  border-radius: 20px !important;
  background:
    radial-gradient(circle at 92% 0, rgba(85, 229, 255, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(10, 22, 48, 0.94), rgba(7, 15, 34, 0.96)) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22) !important;
}

.activity-deposit-panel:hover,
.activity-list-card:hover,
.activity-bonus-step:hover {
  border-color: rgba(85, 229, 255, 0.42) !important;
  transform: translateY(-2px);
}

.activity-safe-icon {
  width: 96px !important;
  height: 84px !important;
  background: url("assets/bonus-gift-icon.png") center / contain no-repeat !important;
  filter:
    saturate(1.05)
    drop-shadow(0 10px 20px rgba(0, 0, 0, 0.28))
    drop-shadow(0 0 18px rgba(85, 229, 255, 0.25)) !important;
}

.activity-deposit-copy h3,
.activity-list-card h3 {
  color: #ffffff !important;
  font-weight: 820 !important;
  letter-spacing: 0 !important;
}

.activity-deposit-copy p,
.activity-list-card p {
  color: var(--dd-muted) !important;
  font-weight: 520 !important;
}

.activity-deposit-copy strong,
.activity-list-card strong {
  color: #5fffc7 !important;
}

.activity-gold-btn {
  min-height: 52px !important;
  border-radius: 16px !important;
  font-weight: 800 !important;
}

.activity-bonus-steps {
  gap: 12px !important;
}

.activity-bonus-step {
  min-height: 116px !important;
  border: 1px solid rgba(85, 229, 255, 0.22) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 50% 26%, rgba(85, 229, 255, 0.11), transparent 45%),
    linear-gradient(180deg, rgba(13, 27, 58, 0.96), rgba(7, 15, 34, 0.98)) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03) !important;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.activity-bonus-step span {
  min-width: 40px !important;
  border-radius: 0 17px 0 12px !important;
  background: linear-gradient(135deg, #c5f8ff, #6cecff) !important;
  color: #051226 !important;
  font-weight: 760 !important;
}

.activity-bonus-step .bonus-gift-icon,
.bonus-gift-icon {
  width: 58px !important;
  height: 48px !important;
  top: 38px !important;
  background: url("assets/bonus-gift-icon.png") center / contain no-repeat !important;
  filter:
    saturate(1.06)
    brightness(0.98)
    drop-shadow(0 8px 14px rgba(0, 0, 0, 0.26))
    drop-shadow(0 0 12px rgba(85, 229, 255, 0.22)) !important;
}

.activity-bonus-step b {
  bottom: 13px !important;
  color: #ffffff !important;
  font-weight: 760 !important;
}

.activity-bonus-step.active {
  border-color: rgba(85, 229, 255, 0.54) !important;
  background:
    radial-gradient(circle at 50% 26%, rgba(85, 229, 255, 0.18), transparent 44%),
    linear-gradient(180deg, rgba(13, 31, 70, 0.98), rgba(7, 16, 38, 0.98)) !important;
}

.activity-bonus-step.active::after {
  content: "\2713" !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 14px 0 17px !important;
  background: linear-gradient(135deg, #55e5ff, #147cff) !important;
  color: #ffffff !important;
}

.activity-info {
  background: rgba(85, 229, 255, 0.12) !important;
  color: #bff8ff !important;
  border: 1px solid rgba(85, 229, 255, 0.24) !important;
  font-family: Inter, "SF Pro Display", ui-sans-serif, system-ui, sans-serif !important;
}

.activity-icon {
  border: 1px solid rgba(85, 229, 255, 0.18) !important;
  border-radius: 20px !important;
  background:
    radial-gradient(circle at 32% 20%, rgba(255, 255, 255, 0.46), transparent 26%),
    linear-gradient(135deg, #55e5ff 0%, #147cff 52%, #7357ff 100%) !important;
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.08),
    0 12px 24px rgba(0, 0, 0, 0.22) !important;
  filter: none !important;
}

.activity-icon.wheel {
  border-radius: 50% !important;
  background: conic-gradient(#55e5ff, #147cff, #7357ff, #ff7ab6, #55e5ff) !important;
  box-shadow:
    inset 0 0 0 10px rgba(5, 12, 28, 0.88),
    0 12px 24px rgba(0, 0, 0, 0.22) !important;
}

.activity-outline-btn {
  min-height: 48px !important;
  border: 1px solid rgba(85, 229, 255, 0.28) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: #dff9ff !important;
  font-weight: 720 !important;
  box-shadow: none !important;
}

.activity-outline-btn:hover {
  background: rgba(85, 229, 255, 0.1) !important;
  border-color: rgba(85, 229, 255, 0.48) !important;
}

.activity-bottom-nav {
  position: fixed !important;
  z-index: 200 !important;
  left: 50% !important;
  right: auto !important;
  bottom: 0 !important;
  width: min(100vw, 813px) !important;
  height: calc(var(--activity-nav-height) + env(safe-area-inset-bottom)) !important;
  min-height: 0 !important;
  padding: 7px 10px max(8px, env(safe-area-inset-bottom)) !important;
  border-top: 1px solid rgba(85, 229, 255, 0.14) !important;
  background:
    radial-gradient(circle at 50% 0, rgba(20, 124, 255, 0.16), transparent 42%),
    rgba(3, 7, 19, 0.94) !important;
  box-shadow: 0 -18px 38px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(20px);
  transform: translateX(-50%) !important;
}

.activity-bottom-nav button {
  color: rgba(218, 231, 255, 0.58) !important;
  font-size: 14px !important;
  font-weight: 620 !important;
}

.activity-bottom-nav button.active,
.activity-bottom-nav button:hover {
  color: var(--dd-cyan) !important;
}

.activity-bottom-nav button > span {
  opacity: 0.92;
}

.nav-home {
  border: 0 !important;
  border-radius: 0 !important;
  background:
    linear-gradient(currentColor 0 0) center 7px / 28px 3px no-repeat,
    linear-gradient(currentColor 0 0) center 16px / 28px 3px no-repeat,
    linear-gradient(currentColor 0 0) center 25px / 28px 3px no-repeat !important;
}

.nav-refer {
  position: relative;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: none !important;
}

.nav-refer::before,
.nav-refer::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 24px;
  border-radius: 5px;
  background:
    radial-gradient(circle at 50% 34%, #061024 0 3px, transparent 4px),
    currentColor;
}

.nav-refer::before {
  left: 6px;
  top: 5px;
  transform: rotate(-9deg);
}

.nav-refer::after {
  right: 5px;
  top: 4px;
  transform: rotate(9deg);
}

.nav-gift {
  position: relative;
  border: 0 !important;
  opacity: 1 !important;
  background: none !important;
}

.nav-gift::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 24px;
  height: 20px;
  border: 4px solid currentColor;
  border-radius: 5px;
  background:
    linear-gradient(currentColor 0 0) center / 4px 100% no-repeat,
    linear-gradient(currentColor 0 0) center 36% / 100% 4px no-repeat;
}

.nav-gift::after {
  content: "3";
  position: absolute;
  right: -7px;
  top: -6px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 2px solid #061024;
  border-radius: 50%;
  background: #147cff;
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
}

.nav-me {
  position: relative;
  border-radius: 0 !important;
  background: none !important;
}

.nav-me::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  width: 19px;
  height: 19px;
  border: 4px solid currentColor;
  border-radius: 50%;
}

.nav-me::after {
  content: "";
  position: absolute;
  left: 25px;
  top: 26px;
  width: 13px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
}

.nav-wallet-main span {
  position: relative;
  width: 74px !important;
  height: 56px !important;
  margin-top: -26px !important;
  border: 1px solid rgba(85, 229, 255, 0.48) !important;
  border-radius: 22px !important;
  background: linear-gradient(135deg, #55e5ff 0%, #147cff 56%, #7357ff 100%) !important;
  box-shadow:
    0 14px 32px rgba(20, 124, 255, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18) !important;
}

.nav-wallet-main span::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 16px;
  width: 30px;
  height: 22px;
  border: 3px solid #ffffff;
  border-radius: 6px;
  transform: rotate(-8deg);
}

.nav-wallet-main span::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 27px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
}

.activity-detail-card {
  border-color: rgba(85, 229, 255, 0.28) !important;
  background:
    radial-gradient(circle at 90% 0, rgba(85, 229, 255, 0.12), transparent 36%),
    #081126 !important;
}

@media (max-width: 720px) {
  :root {
    --activity-top-height: 78px;
    --activity-nav-height: 84px;
  }

  .activity-shell,
  .wallet-shell {
    padding: calc(var(--activity-top-height) + 16px + env(safe-area-inset-top)) 20px calc(var(--activity-nav-height) + 38px + env(safe-area-inset-bottom)) !important;
  }

  .activity-topbar {
    grid-template-columns: minmax(0, 1fr) auto auto auto auto !important;
    gap: 6px !important;
    padding: max(11px, env(safe-area-inset-top)) 14px 11px !important;
  }

  .activity-balance {
    min-height: 40px !important;
    border-radius: 15px !important;
    gap: 6px !important;
    padding: 0 5px 0 8px !important;
  }

  .activity-hero-card {
    min-height: 268px !important;
    margin: 26px 0 26px !important;
  }

  .activity-hero-copy {
    max-width: 76%;
    padding: 56px 36px !important;
  }

  .activity-card {
    padding: 28px 26px calc(var(--activity-nav-height) + 36px + env(safe-area-inset-bottom)) !important;
  }

  .activity-deposit-panel {
    grid-template-columns: 118px 1fr !important;
    gap: 16px !important;
    padding: 26px 20px 20px !important;
  }

  .activity-gold-btn {
    grid-column: 2 !important;
    justify-self: start !important;
    width: min(168px, 100%) !important;
  }

  .activity-bonus-steps {
    grid-column: 1 / -1 !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .activity-list-card {
    grid-template-columns: 86px 1fr !important;
    gap: 16px !important;
    min-height: 126px !important;
    padding: 20px 18px !important;
  }

  .activity-outline-btn {
    grid-column: 2 !important;
    justify-self: start !important;
    min-width: 132px !important;
  }
}

@media (max-width: 430px) {
  :root {
    --activity-top-height: 74px;
    --activity-nav-height: 78px;
  }

  .activity-shell,
  .wallet-shell {
    padding-inline: 14px !important;
  }

  .activity-topbar {
    padding-inline: 14px !important;
    gap: 6px !important;
  }

  .activity-brand strong {
    font-size: 25px !important;
  }

  .activity-brand b {
    font-size: 16px !important;
  }

  .activity-balance span {
    font-size: 13px !important;
  }

  .activity-balance::before {
    width: 19px;
    height: 19px;
  }

  .activity-balance::after {
    left: 15px;
    width: 9px;
    height: 10px;
  }

  .activity-balance button,
  .activity-gift,
  .activity-bell,
  .activity-profile {
    width: 36px !important;
    height: 36px !important;
  }

  .activity-hero-card {
    min-height: 226px !important;
  }

  .activity-hero-copy {
    max-width: 78%;
    padding: 42px 24px !important;
  }

  .activity-hero-copy h1 {
    font-size: 28px !important;
  }

  .activity-hero-copy p {
    font-size: 21px !important;
  }

  .activity-details-pill {
    right: 14px !important;
    top: 18px !important;
    min-height: 40px !important;
    padding-inline: 14px !important;
    font-size: 14px !important;
  }

  .activity-card {
    padding: 24px 14px calc(var(--activity-nav-height) + 34px + env(safe-area-inset-bottom)) !important;
  }

  .activity-deposit-panel {
    grid-template-columns: 88px 1fr !important;
    padding: 20px 14px 16px !important;
  }

  .activity-safe-icon {
    width: 78px !important;
    height: 72px !important;
  }

  .activity-deposit-copy h3,
  .activity-list-card h3 {
    font-size: 17px !important;
  }

  .activity-bonus-steps {
    gap: 7px !important;
  }

  .activity-bonus-step {
    min-height: 104px !important;
    border-radius: 14px !important;
  }

  .activity-bonus-step .bonus-gift-icon,
  .bonus-gift-icon {
    width: 48px !important;
    height: 40px !important;
    top: 36px !important;
  }

  .activity-bonus-step span {
    min-width: 34px !important;
    font-size: 13px !important;
  }

  .activity-list-card {
    grid-template-columns: 70px 1fr !important;
    padding: 18px 14px !important;
  }

  .activity-icon {
    width: 58px !important;
    height: 58px !important;
    border-radius: 16px !important;
  }

  .activity-bottom-nav {
    height: calc(var(--activity-nav-height) + env(safe-area-inset-bottom)) !important;
    padding-top: 6px !important;
  }

  .nav-wallet-main span {
    width: 66px !important;
    height: 52px !important;
  }
}

/* Match the original home header/footer chrome on subpages. */
.activity-topbar,
.wallet-global-topbar {
  min-height: calc(82px + env(safe-area-inset-top)) !important;
  padding: max(12px, env(safe-area-inset-top)) 14px 11px !important;
  background:
    radial-gradient(circle at 16% 0, rgba(16, 87, 190, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(4, 10, 27, 0.98), rgba(4, 9, 24, 0.96)) !important;
  border-bottom: 1px solid rgba(39, 87, 151, 0.55) !important;
  box-shadow: none !important;
}

.activity-brand {
  gap: 6px !important;
}

.brand-spade {
  width: 32px !important;
  height: 32px !important;
  clip-path: none !important;
  border-radius: 0 !important;
  background: url("assets/xd-reference.png") -13px -14px / 390px auto no-repeat !important;
  filter: none !important;
}

.activity-brand strong {
  font-size: clamp(27px, 8.4vw, 40px) !important;
  font-weight: 950 !important;
}

.activity-brand b {
  font-size: clamp(15px, 4.8vw, 24px) !important;
  font-weight: 850 !important;
}

.activity-balance {
  width: 126px !important;
  min-height: 46px !important;
  border-radius: 14px !important;
  gap: 8px !important;
  padding: 0 5px 0 11px !important;
  border-color: rgba(54, 122, 214, 0.72) !important;
  background: rgba(4, 11, 30, 0.92) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035) !important;
}

.activity-balance::before {
  width: 24px !important;
  height: 24px !important;
}

.activity-balance::after {
  left: 18px !important;
  width: 11px !important;
  height: 12px !important;
}

.activity-balance span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
  white-space: nowrap;
}

.activity-balance span::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(255, 255, 255, 0.62);
  border-bottom: 2px solid rgba(255, 255, 255, 0.62);
  transform: rotate(45deg) translateY(-2px);
}

.activity-balance button {
  width: 43px !important;
  height: 43px !important;
  border-radius: 9px !important;
  background: linear-gradient(135deg, #17c7ff, #0d80ff 54%, #744dff) !important;
  box-shadow: 0 0 18px rgba(13, 128, 255, 0.36) !important;
}

.activity-gift,
.activity-bell {
  width: 28px !important;
  height: 42px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: rgba(174, 183, 205, 0.92) !important;
  box-shadow: none !important;
}

.activity-gift::before {
  width: 22px !important;
  height: 21px !important;
  border-width: 3px !important;
}

.activity-bell::before {
  width: 18px !important;
  height: 22px !important;
  border-width: 3px !important;
}

.activity-gift span,
.activity-bell span {
  right: -5px !important;
  top: -2px !important;
  min-width: 21px !important;
  height: 21px !important;
  border: 0 !important;
  background: #1587ff !important;
  color: #ffffff !important;
  font-size: 12px !important;
}

.activity-bell span {
  background: #1587ff !important;
}

.activity-profile {
  width: 30px !important;
  height: 30px !important;
  border: 2px solid rgba(174, 183, 205, 0.8) !important;
  background: transparent !important;
  color: rgba(174, 183, 205, 0.9) !important;
  box-shadow: none !important;
}

.activity-profile::before {
  width: 18px !important;
  height: 18px !important;
  border-width: 0 !important;
}

.activity-bottom-nav,
.wallet-bottom-nav {
  left: 50% !important;
  bottom: calc(8px + env(safe-area-inset-bottom)) !important;
  width: min(calc(100vw - 28px), 785px) !important;
  height: 96px !important;
  padding: 8px 10px !important;
  border: 1px solid rgba(48, 93, 180, 0.72) !important;
  border-radius: 14px !important;
  background:
    radial-gradient(circle at 50% 0, rgba(20, 124, 255, 0.2), transparent 38%),
    linear-gradient(180deg, rgba(7, 14, 35, 0.98), rgba(3, 8, 22, 0.98)) !important;
  box-shadow:
    0 -12px 34px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035) !important;
  backdrop-filter: blur(20px);
}

.activity-bottom-nav button {
  gap: 5px !important;
  color: rgba(171, 181, 203, 0.82) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
}

.activity-bottom-nav button.active,
.activity-bottom-nav button:hover {
  color: rgba(171, 181, 203, 0.82) !important;
}

.activity-bottom-nav button > span {
  width: 31px !important;
  height: 31px !important;
  color: currentColor !important;
}

.nav-home {
  background:
    linear-gradient(currentColor 0 0) center 6px / 26px 3px no-repeat,
    linear-gradient(currentColor 0 0) center 15px / 26px 3px no-repeat,
    linear-gradient(currentColor 0 0) center 24px / 26px 3px no-repeat !important;
}

.activity-bottom-nav .nav-wallet-main {
  color: #ffffff !important;
  font-size: 0 !important;
  gap: 0 !important;
}

.activity-bottom-nav .nav-wallet-main span {
  width: 88px !important;
  height: 58px !important;
  margin-top: -7px !important;
  border: 1px solid rgba(85, 229, 255, 0.64) !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, #17c7ff, #0d80ff 54%, #744dff) !important;
  box-shadow:
    0 0 24px rgba(13, 128, 255, 0.38),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18) !important;
}

.activity-bottom-nav .nav-wallet-main span::before {
  left: 30px !important;
  top: 17px !important;
  width: 27px !important;
  height: 20px !important;
  border-width: 3px !important;
}

.activity-bottom-nav .nav-wallet-main span::after {
  right: 31px !important;
  top: 28px !important;
}

.nav-gift {
  color: rgba(171, 181, 203, 0.82) !important;
}

.nav-gift::after {
  right: -6px !important;
  top: -8px !important;
  background: #1587ff !important;
}

@media (max-width: 430px) {
  .activity-topbar,
  .wallet-global-topbar {
    min-height: calc(72px + env(safe-area-inset-top)) !important;
    padding: max(10px, env(safe-area-inset-top)) 10px 9px !important;
    grid-template-columns: minmax(0, 1fr) auto auto auto auto !important;
    gap: 5px !important;
  }

  .brand-spade {
    width: 31px !important;
    height: 31px !important;
    background-position: -13px -14px !important;
  }

  .activity-brand strong {
    font-size: 25px !important;
  }

  .activity-brand b {
    font-size: 15px !important;
  }

  .activity-balance {
    width: 122px !important;
    min-height: 39px !important;
    gap: 5px !important;
    padding: 0 4px 0 8px !important;
  }

  .activity-balance::before {
    width: 21px !important;
    height: 21px !important;
  }

  .activity-balance::after {
    left: 15px !important;
    width: 10px !important;
    height: 11px !important;
  }

  .activity-balance span {
    gap: 5px !important;
    font-size: 13px !important;
  }

  .activity-balance button {
    width: 36px !important;
    height: 36px !important;
  }

  .activity-gift,
  .activity-bell {
    width: 25px !important;
    height: 36px !important;
  }

  .activity-profile {
    width: 28px !important;
    height: 28px !important;
  }

  .activity-bottom-nav,
  .wallet-bottom-nav {
    width: min(calc(100vw - 28px), 785px) !important;
    height: 82px !important;
    padding: 6px 8px !important;
    bottom: calc(6px + env(safe-area-inset-bottom)) !important;
  }

  .activity-bottom-nav button {
    font-size: 13px !important;
  }

  .activity-bottom-nav .nav-wallet-main span {
    width: 76px !important;
    height: 52px !important;
    margin-top: -5px !important;
  }

  .activity-bottom-nav .nav-wallet-main span::before {
    left: 25px !important;
    top: 15px !important;
  }

  .activity-bottom-nav .nav-wallet-main span::after {
    right: 26px !important;
    top: 25px !important;
  }
}

/* Exact home navigation alignment: use real home nav slices as the visual source. */
:root {
  --home-top-h: min(12.752vw, 103.7px);
  --home-bottom-h: min(12.829vw, 101.4px);
}

.activity-shell,
.wallet-shell {
  padding-top: calc(var(--home-top-h) + 18px + env(safe-area-inset-top)) !important;
  padding-bottom: calc(var(--home-bottom-h) + 28px + env(safe-area-inset-bottom)) !important;
}

.activity-topbar,
.wallet-global-topbar {
  display: block !important;
  width: min(100vw, 813px) !important;
  height: calc(var(--home-top-h) + env(safe-area-inset-top)) !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  background: url("assets/xd-reference.png") center top / 100% auto no-repeat !important;
  border: 0 !important;
  box-shadow: none !important;
}

.activity-brand {
  position: absolute !important;
  z-index: 3;
  left: 11% !important;
  top: 16.5% !important;
  width: 28% !important;
  height: 48% !important;
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding-left: 0.8% !important;
  transform: skewX(-6deg) !important;
}

.activity-brand::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -8% -12% -12% -2%;
  background:
    radial-gradient(circle at 0 42%, rgba(8, 38, 88, 0.76), transparent 48%),
    linear-gradient(90deg, #020815 0%, #020815 78%, rgba(2, 8, 21, 0) 100%);
}

.activity-brand .brand-spade {
  display: none !important;
}

.activity-brand strong {
  color: #0d8fff !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  font-size: clamp(20px, 4.7vw, 43px) !important;
  font-weight: 1000 !important;
  line-height: 1 !important;
  text-shadow: 0 0 13px rgba(0, 145, 255, 0.38) !important;
}

.activity-brand b {
  color: #ffffff !important;
  font-size: clamp(15px, 3.3vw, 30px) !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-shadow: 0 0 13px rgba(0, 145, 255, 0.38) !important;
}

.activity-balance {
  position: absolute !important;
  z-index: 4;
  left: 48.65% !important;
  top: 40% !important;
  width: 12.9% !important;
  height: 28% !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: linear-gradient(90deg, rgba(7, 13, 31, 0.96), rgba(9, 18, 42, 0.96)) !important;
  box-shadow: none !important;
}

.activity-balance::before,
.activity-balance::after,
.activity-balance span::after {
  content: none !important;
}

.activity-balance span {
  position: absolute !important;
  left: 12% !important;
  top: 52% !important;
  transform: translateY(-50%);
  color: #ffffff !important;
  font-size: clamp(14px, 2.38vw, 23px) !important;
  font-weight: 750 !important;
  line-height: 1 !important;
  text-shadow: 0 0 12px rgba(64, 180, 255, 0.34) !important;
}

.activity-balance button,
.activity-gift,
.activity-bell,
.activity-profile {
  position: absolute !important;
  z-index: 5;
  opacity: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.activity-balance button {
  left: 100% !important;
  top: -40% !important;
  width: 42% !important;
  height: 180% !important;
}

.activity-gift {
  left: 76.2% !important;
  top: 24% !important;
  width: 6.5% !important;
  height: 55% !important;
}

.activity-bell {
  left: 86.2% !important;
  top: 24% !important;
  width: 5.8% !important;
  height: 55% !important;
}

.activity-profile {
  right: 1.8% !important;
  top: 25% !important;
  width: 5.7% !important;
  height: 52% !important;
}

.activity-bottom-nav,
.wallet-bottom-nav {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  left: 50% !important;
  bottom: calc(7px + env(safe-area-inset-bottom)) !important;
  width: min(calc(100vw - 12px), 912px) !important;
  height: auto !important;
  aspect-ratio: 912 / 117 !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 14px !important;
  background: url("assets/xd-reference.png") center 92.8% / 103.18% auto no-repeat !important;
  box-shadow: none !important;
}

.activity-bottom-nav button,
.activity-bottom-nav button.active,
.activity-bottom-nav button:hover {
  opacity: 0 !important;
  color: transparent !important;
  font-size: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.activity-bottom-nav button > span,
.activity-bottom-nav button > span::before,
.activity-bottom-nav button > span::after {
  opacity: 0 !important;
  content: none !important;
}

/* One fixed navigation layer shared by home, Bonus, and Wallet. */
.global-top-nav {
  position: fixed;
  z-index: 500;
  left: 50%;
  top: 0;
  width: min(100vw, 941px);
  aspect-ratio: 941 / 120;
  overflow: hidden;
  background: url("assets/xd-reference.png") center top / 100% auto no-repeat;
  transform: translateX(-50%);
  pointer-events: none;
}

.global-bottom-nav {
  position: fixed;
  z-index: 500;
  left: 50%;
  bottom: calc(0.744vw + env(safe-area-inset-bottom));
  width: min(96.918vw, 912px);
  aspect-ratio: 912 / 117;
  overflow: hidden;
  border-radius: min(1.7vw, 16px);
  background: transparent;
  transform: translateX(-50%);
  pointer-events: none;
}

.global-top-nav button,
.global-bottom-nav button {
  position: absolute;
  display: block;
  border: 0;
  background: transparent;
  padding: 0;
  pointer-events: auto;
}

.global-bottom-nav::before {
  content: "";
  position: absolute;
  left: -1.6447%;
  top: -1318.8034%;
  width: 103.18%;
  height: 1429.06%;
  background: url("assets/xd-reference.png") left top / 100% 100% no-repeat;
  pointer-events: none;
}

.global-logo-hit {
  left: 0;
  top: 0;
  width: 39%;
  height: 100%;
}

.global-logo-cover {
  position: absolute;
  z-index: 1;
  left: 28.2%;
  top: 23%;
  width: 69.8%;
  height: 65%;
  background:
    radial-gradient(circle at 0 38%, rgba(8, 38, 88, 0.76), transparent 48%),
    linear-gradient(90deg, #020815 0%, #020815 78%, rgba(2, 8, 21, 0) 100%);
}

.global-wordmark {
  position: absolute;
  z-index: 2;
  left: 30.25%;
  top: 39%;
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: #ffffff;
  font-style: normal;
  text-shadow: 0 0 13px rgba(0, 145, 255, 0.38);
  transform: skewX(-6deg);
}

.global-wordmark strong {
  color: #0d8fff;
  font-size: clamp(20px, 4.7vw, 43px);
  font-weight: 1000;
  line-height: 1;
}

.global-wordmark b {
  color: #ffffff;
  font-size: clamp(15px, 3.3vw, 30px);
  font-weight: 900;
  line-height: 1;
}

.global-balance-cover {
  position: absolute;
  z-index: 2;
  left: 48.65%;
  top: 40%;
  width: 12.9%;
  height: 28%;
  border-radius: 9px;
  background: linear-gradient(90deg, rgba(7, 13, 31, 0.96), rgba(9, 18, 42, 0.96));
  pointer-events: none;
}

.global-balance-value {
  position: absolute;
  z-index: 3;
  left: 50.2%;
  top: 49%;
  color: #ffffff;
  font-size: clamp(14px, 2.38vw, 23px);
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0;
  text-align: left;
  text-shadow: 0 0 12px rgba(64, 180, 255, 0.34);
  pointer-events: none;
}

.global-wallet-hit {
  left: 42.6%;
  top: 18%;
  width: 28.4%;
  height: 58%;
}

.global-gift-hit {
  left: 75.4%;
  top: 20%;
  width: 7.8%;
  height: 60%;
}

.global-bell-hit {
  left: 85.8%;
  top: 20%;
  width: 7%;
  height: 60%;
}

.global-profile-hit {
  left: 93%;
  top: 20%;
  width: 6.2%;
  height: 60%;
}

.global-bottom-nav button:nth-child(1) {
  left: 0;
  top: 0;
  width: 20%;
  height: 100%;
}

.global-bottom-nav button:nth-child(2) {
  left: 20%;
  top: 0;
  width: 20%;
  height: 100%;
}

.global-bottom-nav button:nth-child(3) {
  left: 40%;
  top: 0;
  width: 20%;
  height: 100%;
}

.global-bottom-nav button:nth-child(4) {
  left: 60%;
  top: 0;
  width: 20%;
  height: 100%;
}

.global-bottom-nav button:nth-child(5) {
  left: 80%;
  top: 0;
  width: 20%;
  height: 100%;
}

.activity-page .activity-topbar,
.wallet-page .activity-topbar,
.activity-page .activity-bottom-nav,
.wallet-page .activity-bottom-nav {
  display: none !important;
}

/* Final exact sizing pass: subpage chrome uses the same 941px design base as home. */
:root {
  --home-screen-w: min(100vw, 941px);
  --home-top-exact-h: min(12.752vw, 120px);
  --home-bottom-exact-w: min(96.918vw, 912px);
  --home-bottom-exact-h: min(12.434vw, 117px);
}

.activity-shell,
.wallet-shell {
  width: var(--home-screen-w) !important;
  margin: 0 auto !important;
  padding-top: calc(var(--home-top-exact-h) + 18px + env(safe-area-inset-top)) !important;
  padding-bottom: calc(var(--home-bottom-exact-h) + 28px + env(safe-area-inset-bottom)) !important;
}

.activity-topbar,
.wallet-global-topbar {
  left: 50% !important;
  top: 0 !important;
  width: var(--home-screen-w) !important;
  height: calc(var(--home-top-exact-h) + env(safe-area-inset-top)) !important;
  background: url("assets/xd-reference.png") center top / 100% auto no-repeat !important;
}

.activity-brand {
  left: 2% !important;
  top: 0 !important;
  width: 37% !important;
  height: 100% !important;
  padding-left: 9.8% !important;
  align-items: center !important;
  cursor: pointer;
  pointer-events: auto;
}

.activity-brand::before {
  inset: 24% 0 18% 24% !important;
  background:
    radial-gradient(circle at 0 38%, rgba(8, 38, 88, 0.76), transparent 48%),
    linear-gradient(90deg, #020815 0%, #020815 78%, rgba(2, 8, 21, 0) 100%) !important;
}

.activity-brand:focus-visible {
  outline: 2px solid rgba(40, 204, 255, 0.9);
  outline-offset: -4px;
  border-radius: 10px;
}

.activity-balance {
  left: 48.65% !important;
  top: 34% !important;
  width: 12.9% !important;
  height: 36% !important;
}

.activity-balance button {
  left: 103% !important;
  top: -31% !important;
  width: 54% !important;
  height: 162% !important;
}

.activity-gift {
  left: 76% !important;
  top: 23% !important;
  width: 7.2% !important;
  height: 60% !important;
}

.activity-bell {
  left: 86.1% !important;
  top: 23% !important;
  width: 6.3% !important;
  height: 60% !important;
}

.activity-profile {
  right: 1.8% !important;
  top: 23% !important;
  width: 6% !important;
  height: 58% !important;
}

.activity-bottom-nav,
.wallet-bottom-nav {
  width: var(--home-bottom-exact-w) !important;
  height: var(--home-bottom-exact-h) !important;
  aspect-ratio: auto !important;
  bottom: calc(7px + env(safe-area-inset-bottom)) !important;
  border-radius: min(1.7vw, 16px) !important;
  background: url("assets/xd-reference.png") center 92.8% / 103.18% auto no-repeat !important;
}

/* The fixed global nav replaces the original nav baked into the home mockup. */
.phone-screen::before {
  content: "";
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: 0;
  height: 7.35%;
  background: linear-gradient(180deg, #020713 0%, #020713 86%, rgba(2, 7, 19, 0) 100%);
  pointer-events: none;
}

.phone-screen::after {
  content: "";
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8.5%;
  background:
    linear-gradient(180deg, rgba(2, 7, 19, 0) 0%, #020713 16%, #020713 100%);
  pointer-events: none;
}

.bottom-wallet-hotspot,
.bottom-bonus-hotspot,
.wallet-hotspot,
.logo-cover,
.xd-wordmark,
.home-balance-cover,
.home-balance-value {
  display: none !important;
}

/* Local auth state preview: guest top bar follows the reference site interaction. */
body:not(.is-authenticated) .global-top-nav::after {
  content: "";
  position: absolute;
  z-index: 5;
  left: 38.6%;
  top: 0;
  width: 61.4%;
  height: 100%;
  background:
    linear-gradient(90deg, rgba(2, 8, 21, 0) 0%, #020815 4%, #020815 100%);
  pointer-events: none;
}

body:not(.is-authenticated) .global-balance-cover,
body:not(.is-authenticated) .global-balance-value,
body:not(.is-authenticated) .global-wallet-hit,
body:not(.is-authenticated) .global-gift-hit,
body:not(.is-authenticated) .global-bell-hit {
  display: none !important;
}

.global-login-hit,
.global-signup-hit {
  position: absolute !important;
  z-index: 7 !important;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  pointer-events: auto !important;
  letter-spacing: 0;
}

body:not(.is-authenticated) .global-login-hit,
body:not(.is-authenticated) .global-signup-hit {
  display: flex !important;
}

body.is-authenticated .global-login-hit,
body.is-authenticated .global-signup-hit {
  display: none !important;
}

.global-login-hit {
  left: 51.5% !important;
  top: 22% !important;
  width: 17.1% !important;
  height: 48% !important;
  border: 1px solid rgba(126, 217, 255, 0.42) !important;
  background: rgba(6, 13, 30, 0.78) !important;
  color: #fff !important;
  font-size: clamp(11px, 2.42vw, 18px) !important;
  font-weight: 1000 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.global-signup-hit {
  left: 70.2% !important;
  top: 22% !important;
  width: 18.2% !important;
  height: 48% !important;
  border: 1px solid rgba(85, 229, 255, 0.58) !important;
  background: linear-gradient(135deg, #0f7bff, #64ecff) !important;
  color: #03172a !important;
  font-size: clamp(10px, 2.2vw, 17px) !important;
  font-weight: 1000 !important;
  overflow: visible !important;
  box-shadow: 0 0 14px rgba(85, 229, 255, 0.24) !important;
}

.global-signup-hit span {
  position: absolute;
  left: 50%;
  top: -19%;
  min-width: 0;
  transform: translateX(-50%);
  border-radius: 999px;
  padding: 3px 8px;
  background: linear-gradient(135deg, #35f4ff, #57ffb8);
  color: #06182b;
  font-size: clamp(7px, 1.2vw, 10px);
  font-weight: 1000;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 0 12px rgba(65, 244, 255, 0.28);
  overflow: hidden;
  animation: bonusFloat 2.6s ease-in-out infinite;
}

.global-signup-hit span::after {
  content: "";
  position: absolute;
  inset: -45% auto -45% -40%;
  width: 36%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.74), transparent);
  transform: skewX(-18deg);
  animation: bonusShine 2.6s ease-in-out infinite;
}

body:not(.is-authenticated) .global-profile-hit {
  z-index: 7 !important;
  left: 91.1% !important;
  top: 22% !important;
  width: 7.2% !important;
  height: 48% !important;
  border: 1px solid rgba(85, 229, 255, 0.46) !important;
  border-radius: 50% !important;
  background: rgba(5, 13, 30, 0.76) !important;
  box-shadow: 0 0 10px rgba(85, 229, 255, 0.14) !important;
}

body:not(.is-authenticated) .global-profile-hit::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 26%;
  width: 28%;
  height: 28%;
  border: 2px solid #8cecff;
  border-radius: 50%;
  transform: translateX(-50%);
}

body:not(.is-authenticated) .global-profile-hit::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 18%;
  width: 54%;
  height: 30%;
  border: 2px solid #8cecff;
  border-top-left-radius: 999px;
  border-top-right-radius: 999px;
  border-bottom: 0;
  transform: translateX(-50%);
}

/* Mobile viewport stability: keep bottom navigation locked to the screen edge. */
:root {
  --fixed-bottom-nav-height: 118px;
  --fixed-bottom-nav-inset: 24px;
}

.global-bottom-nav {
  position: fixed !important;
  z-index: 1000 !important;
  left: 50% !important;
  right: auto !important;
  bottom: 0 !important;
  width: min(calc(100% - (var(--fixed-bottom-nav-inset) * 2)), 912px) !important;
  height: var(--fixed-bottom-nav-height) !important;
  min-height: var(--fixed-bottom-nav-height) !important;
  max-height: var(--fixed-bottom-nav-height) !important;
  padding: 0 0 env(safe-area-inset-bottom) !important;
  box-sizing: content-box !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: space-around !important;
  overflow: hidden !important;
  border-radius: 16px 16px 0 0 !important;
  background: url("assets/xd-reference.png") center bottom / 103.18% auto no-repeat !important;
  transform: translateX(-50%) translateZ(0) !important;
  pointer-events: auto !important;
  will-change: transform;
}

.global-bottom-nav::before {
  content: none !important;
}

.global-bottom-nav button,
.global-bottom-nav button:nth-child(1),
.global-bottom-nav button:nth-child(2),
.global-bottom-nav button:nth-child(3),
.global-bottom-nav button:nth-child(4),
.global-bottom-nav button:nth-child(5) {
  position: relative !important;
  inset: auto !important;
  left: auto !important;
  top: auto !important;
  width: auto !important;
  height: var(--fixed-bottom-nav-height) !important;
  flex: 1 1 20% !important;
  display: block !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  pointer-events: auto !important;
}

.activity-bottom-nav,
.wallet-bottom-nav {
  left: 50% !important;
  right: auto !important;
  bottom: 0 !important;
  width: min(calc(100% - (var(--fixed-bottom-nav-inset) * 2)), 912px) !important;
  height: var(--fixed-bottom-nav-height) !important;
  min-height: var(--fixed-bottom-nav-height) !important;
  max-height: var(--fixed-bottom-nav-height) !important;
  padding: 0 0 env(safe-area-inset-bottom) !important;
  box-sizing: content-box !important;
  border-radius: 16px 16px 0 0 !important;
  transform: translateX(-50%) translateZ(0) !important;
  will-change: transform;
}

.activity-shell,
.wallet-shell {
  padding-bottom: calc(var(--fixed-bottom-nav-height) + 24px + env(safe-area-inset-bottom)) !important;
}

.mirror-stage {
  padding-bottom: calc(var(--fixed-bottom-nav-height) + 24px + env(safe-area-inset-bottom)) !important;
}

@media (max-width: 941px), (pointer: coarse) {
  :root {
    --fixed-bottom-nav-height: 64px;
    --fixed-bottom-nav-inset: 0px;
  }

  .global-bottom-nav,
  .activity-bottom-nav,
  .wallet-bottom-nav {
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    max-width: 100% !important;
    border-radius: 14px 14px 0 0 !important;
    transform: translateZ(0) !important;
  }

  .global-bottom-nav {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    align-items: center !important;
    overflow: hidden !important;
    border: 1px solid rgba(72, 132, 255, 0.38) !important;
    border-bottom: 0 !important;
    background:
      radial-gradient(circle at 50% 0, rgba(29, 126, 255, 0.32), transparent 44%),
      linear-gradient(90deg, rgba(8, 24, 55, 0.98), rgba(4, 13, 31, 0.98) 46%, rgba(15, 12, 48, 0.98)) !important;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(105, 181, 255, 0.28) !important;
  }

  .global-bottom-nav button,
  .global-bottom-nav button:nth-child(1),
  .global-bottom-nav button:nth-child(2),
  .global-bottom-nav button:nth-child(3),
  .global-bottom-nav button:nth-child(4),
  .global-bottom-nav button:nth-child(5) {
    position: relative !important;
    width: 100% !important;
    height: var(--fixed-bottom-nav-height) !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    color: rgba(219, 227, 247, 0.72) !important;
    font: 500 11px/1 Inter, "SF Pro Display", ui-sans-serif, system-ui, sans-serif !important;
  }

  .global-bottom-nav button::before {
    content: "";
    display: block;
    width: 24px;
    height: 22px;
    background: rgba(221, 229, 249, 0.76);
    filter: drop-shadow(0 0 10px rgba(92, 160, 255, 0.22));
    -webkit-mask: var(--mobile-nav-icon) center / contain no-repeat;
    mask: var(--mobile-nav-icon) center / contain no-repeat;
  }

  .global-bottom-nav button::after {
    content: attr(aria-label);
    display: block;
  }

  .global-bottom-nav button:nth-child(1)::before {
    --mobile-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round'%3E%3Cpath d='M5 7h14M5 12h14M5 17h14'/%3E%3C/svg%3E");
  }

  .global-bottom-nav button:nth-child(2)::before {
    width: 28px;
    height: 25px;
    --mobile-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='black' stroke-width='1.9' stroke-linejoin='round' stroke-linecap='round'%3E%3Crect x='7.2' y='4.2' width='10.5' height='15.5' rx='1.9' transform='rotate(-12 7.2 4.2)'/%3E%3Crect x='12.2' y='6.6' width='10.5' height='15.5' rx='1.9' transform='rotate(10 12.2 6.6)'/%3E%3Cpath fill='black' stroke='none' d='M13.5 12.2c1.9-2.6 5.6-1.2 5.6 1.4 0 2.4-2.9 4.3-5.6 6.3-2.7-2-5.6-3.9-5.6-6.3 0-2.6 3.7-4 5.6-1.4z' transform='scale(.55) translate(10 8)'/%3E%3C/svg%3E");
  }

  .global-bottom-nav button:nth-child(3)::before {
    width: 68px;
    height: 50px;
    margin-top: -8px;
    border: 1px solid rgba(93, 231, 255, 0.76);
    border-radius: 18px;
    background:
      radial-gradient(circle at 72% 18%, rgba(132, 244, 255, 0.48), transparent 28%),
      linear-gradient(145deg, #0b55ff 0%, #088aff 54%, #14c7ff 100%);
    box-shadow:
      0 11px 26px rgba(0, 104, 255, 0.5),
      0 0 0 1px rgba(47, 139, 255, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.32),
      inset 0 -10px 18px rgba(0, 49, 171, 0.24);
    filter: none;
    -webkit-mask: none;
    mask: none;
  }

  .global-bottom-nav button:nth-child(3)::after {
    content: "";
    position: absolute;
    left: 50%;
    top: calc(50% - 3px);
    width: 32px;
    height: 28px;
    background: #fff;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 2px 7px rgba(255, 255, 255, 0.34));
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 30' fill='none' stroke='black' stroke-width='3' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M5 10h22.2a3.4 3.4 0 0 1 3.4 3.4v9.2a3.4 3.4 0 0 1-3.4 3.4H5a3.4 3.4 0 0 1-3.4-3.4V8.8A3.4 3.4 0 0 1 5 5.4h15.4'/%3E%3Cpath d='M8.5 10 21.8 2.9a2.8 2.8 0 0 1 3.8 1.2l2.8 5.2'/%3E%3Cpath d='M24.2 17.9h6.1'/%3E%3Ccircle cx='24.6' cy='17.9' r='1.4' fill='black' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 30' fill='none' stroke='black' stroke-width='3' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M5 10h22.2a3.4 3.4 0 0 1 3.4 3.4v9.2a3.4 3.4 0 0 1-3.4 3.4H5a3.4 3.4 0 0 1-3.4-3.4V8.8A3.4 3.4 0 0 1 5 5.4h15.4'/%3E%3Cpath d='M8.5 10 21.8 2.9a2.8 2.8 0 0 1 3.8 1.2l2.8 5.2'/%3E%3Cpath d='M24.2 17.9h6.1'/%3E%3Ccircle cx='24.6' cy='17.9' r='1.4' fill='black' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .global-bottom-nav button:nth-child(4)::before {
    width: 26px;
    height: 25px;
    --mobile-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='black' stroke-width='2.1' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M4 12h20v11.5H4zM3 8.5h22V12H3zM14 8.5v15'/%3E%3Cpath d='M14 8.3C12.1 4.1 7.2 3.8 7.2 6.6c0 2.8 4.4 2.5 6.8 1.7ZM14 8.3c1.9-4.2 6.8-4.5 6.8-1.7 0 2.8-4.4 2.5-6.8 1.7Z'/%3E%3C/svg%3E");
  }

  .global-bottom-nav button:nth-child(5)::before {
    width: 24px;
    height: 24px;
    --mobile-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='11.2' cy='11.2' r='7.2'/%3E%3Cpath d='m17 17 5 5'/%3E%3C/svg%3E");
  }
}
