body.xp-activity-route .workspace > main:not(#xp-activity-page) {
  display: none !important;
}

body.xp-activity-route:not(.xp-activity-has-topbar) .workspace {
  grid-template-rows: minmax(0, 1fr) 42px !important;
}

.xp-activity-side-icon {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 7px;
  background: #fff2f7;
  color: #d63c91;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.side-nav button.active .xp-activity-side-icon {
  background: #ffffff;
  color: #8b5cf6;
}

.xp-recharge-home-notice,
.xp-activity-wallet-banner {
  display: none !important;
}

#xp-activity-page {
  min-height: 0;
  overflow: auto;
  padding: 4px 34px 22px;
  scrollbar-width: thin;
}

.xp-activity-wrap {
  width: min(1180px, calc(100vw - 380px));
  max-width: 100%;
  margin: 0 auto;
  padding: 26px;
  border: 2px solid var(--line, #d8c9fb);
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: var(--shadow, 0 18px 60px rgba(102, 73, 158, .18));
}

.xp-activity-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: stretch;
  gap: 22px;
  min-height: 286px;
  overflow: hidden;
  margin-bottom: 16px;
  padding: 26px;
  border: 1px solid #ffd1df;
  border-radius: 18px;
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 209, 86, .62), transparent 30%),
    linear-gradient(135deg, #fff7ef 0%, #ffe7f0 48%, #fff 100%);
}

.xp-activity-hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.xp-activity-eyebrow,
.xp-activity-section-kicker {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #ffb4cb;
  border-radius: 999px;
  background: #fff;
  color: #c82f64;
  font-size: 12px;
  font-weight: 950;
}

.xp-activity-hero h1 {
  margin: 14px 0 10px;
  color: #24106d;
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: 0;
}

.xp-activity-hero p {
  max-width: 650px;
  margin: 0;
  color: #674f85;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.8;
}

.xp-activity-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.xp-activity-hero button,
.xp-activity-primary {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #ffc1d5;
  border-radius: 12px;
  background: #fff;
  color: #b8275b;
  cursor: pointer;
  font: inherit;
  font-weight: 950;
}

.xp-activity-primary {
  border: 0 !important;
  background: #ff4f86 !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(255, 79, 134, .24);
}

.xp-activity-hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 236px;
}

.xp-activity-hero-visual img {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 198px;
  max-width: 65%;
  height: auto;
  padding: 14px 14px 0;
  border-radius: 28px;
  background: linear-gradient(160deg, #24106d 0%, #6d3fd1 52%, #ff5f91 100%);
  box-shadow: 0 22px 44px rgba(74, 40, 120, .22);
}

.xp-activity-hero-card {
  position: absolute;
  top: 18px;
  left: 0;
  display: grid;
  gap: 4px;
  min-width: 148px;
  padding: 16px;
  border: 1px solid #ffd3a7;
  border-radius: 16px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 40px rgba(126, 72, 30, .14);
}

.xp-activity-hero-card small,
.xp-activity-hero-card span {
  color: #7a5b31;
  font-size: 12px;
  font-weight: 950;
}

.xp-activity-hero-card strong {
  color: #b84500;
  font-size: 42px;
  line-height: 1;
}

.xp-activity-hero-tag {
  position: absolute;
  right: 0;
  top: 28px;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #24106d;
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  box-shadow: 0 14px 32px rgba(36, 16, 109, .22);
}

.xp-activity-rules-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 18px;
  margin-bottom: 16px;
  padding: 20px;
  border: 1px solid #e6d8fd;
  border-radius: 16px;
  background: #fff;
}

.xp-activity-rules-panel h2,
.xp-activity-head h2 {
  margin: 10px 0 8px;
  color: #24106d;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0;
}

.xp-activity-rules-panel ul {
  margin: 0;
  padding-left: 18px;
}

.xp-activity-rules-panel li {
  color: #65517f;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.85;
}

.xp-activity-rule-image {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  min-height: 190px;
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff5dc, #fff);
  text-align: center;
}

.xp-activity-rule-image img {
  width: 88px;
  height: auto;
  padding: 14px;
  border-radius: 24px;
  background: #24106d;
  box-shadow: 0 16px 34px rgba(36, 16, 109, .18);
}

.xp-activity-rule-image strong {
  color: #aa5400;
  font-size: 20px;
  font-weight: 950;
}

.xp-activity-rule-image span {
  color: #7a5b31;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.55;
}

.xp-checkin-tier-panel {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid #e6d8fd;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #fffaff);
}

.xp-checkin-tier-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.xp-checkin-tier-card {
  min-height: 116px;
  padding: 16px;
  border: 1px solid #e3d5fb;
  border-radius: 14px;
  background: #fff;
}

.xp-checkin-tier-card.active {
  border-color: #c4f0d4;
  background: linear-gradient(180deg, #f2fff7, #fff);
}

.xp-checkin-tier-card small {
  display: block;
  color: #6c5c8d;
  font-size: 13px;
  font-weight: 950;
}

.xp-checkin-tier-card strong {
  display: block;
  margin-top: 8px;
  color: #24106d;
  font-size: 30px;
  line-height: 1;
}

.xp-checkin-tier-card span {
  display: block;
  margin-top: 10px;
  color: #168a46;
  font-size: 13px;
  font-weight: 950;
}

.xp-activity-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.xp-activity-head.compact {
  align-items: center;
  padding-top: 4px;
  margin-bottom: 12px;
}

.xp-activity-head p {
  margin: 8px 0 0;
  color: #725fa0;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.7;
}

.xp-activity-head button,
.xp-activity-row button,
.xp-activity-modal-card button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #d8c9fb;
  border-radius: 12px;
  background: #fff;
  color: #5b37ba;
  cursor: pointer;
  font: inherit;
  font-weight: 950;
}

.xp-activity-list {
  display: grid;
  gap: 12px;
}

.xp-activity-row {
  display: grid;
  grid-template-columns: 92px 150px minmax(150px, .8fr) minmax(260px, 1fr) 86px;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 14px;
  border: 1px solid #ddd0fb;
  border-radius: 14px;
  background: #ffffffc9;
}

.xp-activity-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #ecfff3;
  color: #168a46;
  font-size: 13px;
  font-weight: 950;
}

.xp-activity-status.past {
  background: #f4edff;
  color: #7656c8;
}

.xp-activity-date {
  color: #6e5a9a;
  font-size: 13px;
  font-weight: 900;
}

.xp-activity-title {
  color: #2c176f;
  font-size: 16px;
  font-weight: 950;
}

.xp-activity-summary {
  color: #6c5c8d;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.65;
}

.xp-activity-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(39, 23, 79, .28);
}

.xp-activity-modal-card {
  width: min(820px, 94vw);
  max-height: min(760px, 88vh);
  overflow: auto;
  padding: 24px;
  border: 2px solid #d8c9fb;
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: 0 24px 80px rgba(54, 31, 111, .28);
}

.xp-activity-modal-card h2 {
  margin: 0 0 8px;
  color: #24106d;
  font-size: 24px;
  line-height: 1.25;
}

.xp-activity-modal-card p,
.xp-activity-modal-card li {
  color: #675486;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.75;
}

.xp-activity-tier-table {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid #ddd0fb;
  border-radius: 12px;
}

.xp-activity-tier-table th,
.xp-activity-tier-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eee6ff;
  color: #3d2a76;
  font-size: 13px;
  text-align: left;
}

.xp-activity-tier-table th {
  background: #f7f1ff;
  font-weight: 950;
}

.xp-activity-tier-table td strong {
  color: #b8275b;
  font-size: 15px;
}

.xp-activity-modal-visual {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #ffd1df;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff6e3, #fff);
}

.xp-activity-modal-visual img {
  width: 66px;
  height: auto;
  justify-self: center;
}

.xp-activity-modal-visual strong,
.xp-activity-modal-visual span {
  display: block;
}

.xp-activity-modal-visual strong {
  color: #b8275b;
  font-size: 16px;
  font-weight: 950;
}

.xp-activity-modal-visual span {
  margin-top: 4px;
  color: #735d9c;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.6;
}

.xp-activity-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
}

@media (max-width: 900px) {
  #xp-activity-page {
    padding: 10px 14px 18px;
  }

  .xp-activity-wrap {
    width: 100%;
    padding: 18px;
  }

  .xp-activity-hero,
  .xp-activity-rules-panel {
    grid-template-columns: 1fr;
  }

  .xp-activity-hero {
    padding: 20px;
  }

  .xp-activity-hero h1 {
    font-size: 30px;
  }

  .xp-activity-hero-visual {
    min-height: 210px;
  }

  .xp-checkin-tier-grid {
    grid-template-columns: 1fr 1fr;
  }

  .xp-activity-head {
    display: grid;
  }

  .xp-activity-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .xp-activity-modal-card {
    padding: 18px;
  }

  .xp-activity-modal-visual {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .xp-activity-hero-actions,
  .xp-activity-modal-actions {
    display: grid;
  }

  .xp-activity-hero button,
  .xp-activity-modal-card button {
    width: 100%;
  }

  .xp-activity-tier-table th,
  .xp-activity-tier-table td {
    padding: 9px 7px;
    font-size: 12px;
  }

  .xp-checkin-tier-grid {
    grid-template-columns: 1fr;
  }
}
