:root {
  --bg: #f8f7fd;
  --panel: #fff;
  --panel2: #faf8ff;
  --gold: #ffe26b;
  --orange: #ffb454;
  --lav: #7548df;
  --muted: #958e9f;
  --line: #ece8f3;
}

html {
  background: #f8f7fd;
}

body {
  background: linear-gradient(180deg, #f2edff 0, #f8f7fd 290px, #f8f7fd 100%);
  color: #282333;
}

.ambient {
  filter: blur(80px);
  opacity: .18;
}

.ambient.one {
  background: #8f66eb;
}

.ambient.two {
  background: #ffd36c;
}

.app-shell {
  background: #f8f7fd;
}

.topbar {
  background: rgba(248, 247, 253, .9);
  backdrop-filter: blur(16px);
}

.brand > span {
  background: linear-gradient(145deg, #8254e9, #5f31ce);
  color: #fff;
  box-shadow: 0 7px 16px rgba(95, 49, 206, .2);
}

.brand small {
  color: #9b94a7;
}

.text-button {
  border-color: #ded7ef;
  color: #7042d5;
  background: #fff;
}

.hero {
  padding: 25px 16px 17px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 29px;
  background:
    radial-gradient(circle at 50% -8%, rgba(196, 160, 255, .32), transparent 32%),
    radial-gradient(circle at 8% 55%, rgba(123, 70, 230, .34), transparent 38%),
    linear-gradient(155deg, #3d197d 0%, #5c2fb8 48%, #6b3ed1 100%);
  box-shadow: 0 22px 48px rgba(62, 31, 119, .22), inset 0 1px rgba(255, 255, 255, .1);
}

.hero::before {
  background:
    linear-gradient(115deg, transparent 12%, rgba(255, 255, 255, .055) 44%, transparent 70%),
    radial-gradient(circle at 50% 53%, rgba(255, 214, 95, .13), transparent 34%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 310px;
  height: 310px;
  top: -238px;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
  pointer-events: none;
}

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

.campaign-tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  color: rgba(255, 245, 206, .88);
  border-color: rgba(255, 236, 163, .22);
  background: rgba(33, 12, 72, .24);
  box-shadow: inset 0 1px rgba(255, 255, 255, .06);
  font-weight: 700;
  letter-spacing: .8px;
}

.hero .progress-copy,
.hero .balance-grid strong {
  color: #fff;
}

.hero > p b,
.reward-orbit strong,
.progress-copy strong,
.balance-grid div:first-child strong {
  color: #ffe26b;
}

.hero > p {
  max-width: 284px;
  color: rgba(255, 255, 255, .64);
  font-size: 9px;
  line-height: 1.65;
}

.hero-reward-total {
  width: min(100%, 296px);
  min-height: 106px;
  margin: 12px auto 0;
  padding: 16px 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hero-reward-total::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 240px;
  height: 128px;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 220, 101, .13) 0%, rgba(108, 55, 198, .08) 48%, transparent 72%);
  filter: blur(2px);
  pointer-events: none;
}

.hero-reward-total::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 1px;
  top: auto;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255, 239, 186, .24), transparent);
}

.hero-reward-heading {
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding-bottom: 0;
  border-bottom: 0;
}

.hero-reward-heading h1 {
  margin: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.2px;
  white-space: nowrap;
}

.hero-reward-heading h1 em {
  margin-left: 3px;
  color: #f9dc7d;
  font-style: normal;
}

.hero-reward-heading span {
  flex: none;
  padding: 4px 7px;
  border: 1px solid rgba(255, 232, 153, .18);
  border-radius: 999px;
  color: rgba(255, 241, 190, .82);
  background: rgba(41, 13, 88, .16);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .3px;
}

.hero-reward-total strong {
  margin-top: 13px;
  color: #ffe17d;
  background: linear-gradient(180deg, #fff5c7 0%, #ffdf73 58%, #f6ba45 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 45px;
  font-weight: 800;
  line-height: .96;
  letter-spacing: -1.8px;
  font-variant-numeric: tabular-nums;
  filter: drop-shadow(0 7px 15px rgba(255, 187, 53, .18));
  white-space: nowrap;
}

.hero .hero-reward-total + p {
  margin-top: 10px;
}

.safe-halo {
  width: 228px;
  height: 228px;
  z-index: 0;
  border-color: rgba(255, 226, 107, .2);
  background: radial-gradient(circle, rgba(255, 210, 80, .17), rgba(156, 91, 255, .09) 45%, transparent 70%);
  box-shadow: 0 0 70px rgba(255, 217, 99, .16), inset 0 0 42px rgba(255, 255, 255, .07);
  animation: safeHaloPulse 3.6s ease-in-out infinite;
}

.safe-stage {
  height: 252px;
  margin: -3px 0 -7px;
  isolation: isolate;
}

.safe-stage::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 210px;
  height: 55px;
  bottom: 16px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(27, 7, 65, .5), transparent 68%);
  filter: blur(5px);
}

.safe-rays {
  position: absolute;
  z-index: 0;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  opacity: .32;
  background: repeating-conic-gradient(from 8deg, rgba(255, 231, 132, .15) 0 3deg, transparent 3deg 23deg);
  -webkit-mask-image: radial-gradient(circle, #000 0, transparent 68%);
  mask-image: radial-gradient(circle, #000 0, transparent 68%);
  animation: safeRaysSpin 28s linear infinite;
}

.safe-hero-art {
  position: relative;
  z-index: 2;
  left: -7px;
  width: 254px;
  height: 254px;
  object-fit: contain;
  filter: drop-shadow(0 19px 15px rgba(25, 6, 62, .34)) drop-shadow(0 0 18px rgba(255, 206, 83, .12));
  animation: safeHeroFloat 4s ease-in-out infinite;
  user-select: none;
  -webkit-user-drag: none;
}

.safe-sparkles {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
}

.safe-sparkles i {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff5bf;
  box-shadow: 0 0 12px 3px rgba(255, 225, 106, .55);
  animation: safeSparkle 2.4s ease-in-out infinite;
}

.safe-sparkles i::before,
.safe-sparkles i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: -5px;
  width: 17px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #fff5bf, transparent);
}

.safe-sparkles i::after {
  transform: rotate(90deg);
}

.safe-sparkles i:first-child { top: 43px; left: 52px; }
.safe-sparkles i:nth-child(2) { top: 82px; right: 48px; animation-delay: -.8s; transform: scale(.7); }
.safe-sparkles i:nth-child(3) { bottom: 47px; left: 73px; animation-delay: -1.5s; transform: scale(.55); }

@keyframes safeHeroFloat {
  0%, 100% { transform: translateY(2px) scale(1); }
  50% { transform: translateY(-4px) scale(1.012); }
}

@keyframes safeHaloPulse {
  0%, 100% { transform: scale(.96); opacity: .72; }
  50% { transform: scale(1.05); opacity: 1; }
}

@keyframes safeRaysSpin { to { transform: rotate(360deg); } }

@keyframes safeSparkle {
  0%, 100% { opacity: .2; }
  45% { opacity: 1; }
}

.reward-orbit {
  z-index: 4;
  right: 0;
  top: 45px;
  border-color: rgba(255, 226, 130, .22);
  background: rgba(40, 14, 88, .84);
  box-shadow: 0 12px 26px rgba(25, 7, 62, .3), inset 0 1px rgba(255, 255, 255, .09);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.reward-orbit small,
.progress-copy span,
.balance-grid small {
  color: rgba(255, 255, 255, .64);
}

.progress-track {
  background: rgba(255, 255, 255, .14);
}

.progress-track i {
  background: linear-gradient(90deg, #ffbd4a, #ffe56f);
  box-shadow: 0 0 15px rgba(255, 219, 91, .6);
}

.balance-grid div {
  border-color: rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .065);
  box-shadow: inset 0 1px rgba(255, 255, 255, .04);
}

.notice {
  border-color: #d9eee7;
  background: #f2fbf8;
}

.notice > span {
  background: #44b796;
  color: #fff;
}

.notice p {
  color: #68847c;
}

.notice strong {
  color: #229c7d;
}

.action-card,
.card {
  border-color: #ece8f3;
  background: #fff;
  box-shadow: 0 7px 22px rgba(43, 28, 73, .055);
}

.step-chip,
.section-head small {
  color: #7950df;
}

.action-card h2,
.section-head h2,
.record strong,
.account-row strong,
.rules-mini strong {
  color: #282333;
}

.action-card h2 em {
  color: #7042d8;
}

.action-card p,
.section-head > span,
.account-row span,
.record small,
.empty,
.rules-mini {
  color: #938c9f;
}

.primary {
  color: #fff;
  background: linear-gradient(135deg, #7b4ce8, #6334d4);
  box-shadow: 0 8px 18px rgba(103, 54, 220, .22);
}

.secondary {
  border-color: #dcd2f3;
  color: #7042d8;
  background: #fff;
}

.action-hint {
  color: #aaa3b3;
}

.verified {
  color: #259d7f !important;
  background: #e9f8f3;
}

.account-row,
.record {
  border-color: #efecf4;
}

.avatar {
  background: linear-gradient(145deg, #8a5ce9, #6637d4);
  box-shadow: 0 6px 13px rgba(103, 54, 220, .16);
}

.record > b {
  color: #27a083;
}

.claim-record > b {
  color: #c58a18;
}

.rules-mini {
  border-color: #e4def0;
  background: #fbfaff;
}

dialog::backdrop {
  background: rgba(34, 20, 57, .42);
}

.sheet {
  color: #282333;
  border-top-color: #ece7f4;
  background: #fff;
  box-shadow: 0 -20px 50px rgba(35, 19, 61, .18);
}

.close {
  color: #7f778b;
  background: #f2f0f6;
}

.sheet-icon {
  color: #fff;
  background: linear-gradient(145deg, #8254e9, #6032cf);
}

.sheet > p,
.rules-sheet article p {
  color: #8e8798;
}

.sheet textarea,
.sheet label input {
  border-color: #ded8e9;
  background: #faf9fc;
  color: #332c3d;
}

/* Keep the withdrawal amount field at 16px to avoid iOS focus zoom. */
#claimForm input {
  font-size: 16px;
}

.claim-summary {
  background: linear-gradient(135deg, #4d2391, #7542df);
}

.claim-summary span {
  color: #d3c5eb;
}

.sheet label {
  color: #696172;
}

.sheet label button {
  background: #eee8ff;
  color: #7042d8;
}

.target-account {
  border-color: #cce9df;
  background: #f1faf7;
}

.target-account small,
.target-account span {
  color: #3d9f82;
}

.rules-sheet article {
  border-color: #eeeaf3;
}

.rules-sheet article > b {
  color: #7950df;
}

.toast {
  color: #fff;
  background: #2b213b;
  box-shadow: 0 10px 25px rgba(28, 16, 45, .22);
}

@media (prefers-reduced-motion: reduce) {
  .safe-halo,
  .safe-rays,
  .safe-hero-art,
  .safe-sparkles i,
  .floating-invite-button::before,
  .floating-invite-icon {
    animation: none !important;
  }
}

.action-card.complete {
  border-color: #d7eee7;
  background: linear-gradient(145deg, #f5fcfa, #fff);
}

.action-card.complete .step-chip,
.action-card.complete h2 {
  color: #24977a;
}

.app-shell {
  padding-bottom: calc(98px + var(--safe));
}

.action-card > .secondary {
  margin-top: 10px;
}

.bottom-action-bar {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 0;
  width: min(100%, 430px);
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 8px;
  padding: 9px 14px calc(9px + var(--safe));
  transform: translateX(-50%);
  border-top: 1px solid rgba(224, 218, 235, .88);
  background: rgba(248, 247, 253, .92);
  box-shadow: 0 -10px 28px rgba(43, 28, 73, .1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.bottom-action-bar.single-action {
  grid-template-columns: minmax(0, 1fr);
}

.floating-reward-button {
  height: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid #dcd2f3;
  border-radius: 17px;
  color: #7042d8;
  background: #fff;
  box-shadow: 0 7px 16px rgba(64, 39, 108, .08);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.floating-reward-button:active {
  transform: scale(.97);
  border-color: #bfaee8;
  box-shadow: 0 4px 10px rgba(64, 39, 108, .08);
}

.floating-reward-button span {
  font-size: 14px;
  line-height: 1;
}

.floating-reward-button strong {
  font-size: 8px;
}

.floating-invite-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(118deg, #8e5cf5 0%, #7540e5 42%, #5726c5 100%);
  box-shadow: 0 11px 24px rgba(93, 43, 201, .3), 0 2px 6px rgba(67, 26, 152, .18), inset 0 1px rgba(255, 255, 255, .24);
  transition: transform .16s ease, box-shadow .16s ease;
}

.floating-invite-button::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -70%;
  left: -42%;
  width: 38px;
  height: 240%;
  transform: rotate(19deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .46), transparent);
  animation: inviteButtonShine 3.8s ease-in-out infinite;
  pointer-events: none;
}

.floating-invite-button::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 1px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 15px;
  pointer-events: none;
}

.floating-invite-button:active {
  transform: scale(.985);
  box-shadow: 0 7px 16px rgba(93, 43, 201, .25), inset 0 1px rgba(255, 255, 255, .2);
}

.floating-invite-button > span {
  position: relative;
  z-index: 2;
}

.floating-invite-button > span:last-child {
  text-align: left;
}

.floating-invite-copy {
  min-width: 0;
  flex: 1;
}

.floating-invite-button strong,
.floating-invite-button small {
  display: block;
}

.floating-invite-button strong {
  font-size: 11px;
  letter-spacing: .1px;
  text-shadow: 0 1px 5px rgba(49, 14, 112, .2);
  white-space: nowrap;
}

.floating-invite-button small {
  margin-top: 3px;
  color: rgba(255, 255, 255, .72);
  font-size: 7px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.floating-invite-icon {
  width: 31px;
  height: 31px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #6b38d6;
  font-size: 14px;
  font-weight: 900;
  background: linear-gradient(145deg, #fff, #eee7ff);
  box-shadow: 0 5px 12px rgba(42, 14, 104, .2), inset 0 1px #fff;
  animation: inviteIconPulse 2.7s ease-in-out infinite;
}

.floating-invite-button.complete {
  background: linear-gradient(135deg, #50b99b, #278f74);
  box-shadow: 0 8px 18px rgba(39, 143, 116, .18);
}

.floating-invite-button.complete::before {
  display: none;
}

.floating-invite-button.complete:disabled {
  opacity: 1;
}

.bottom-action-bar.single-action .floating-invite-button {
  height: 58px;
  justify-content: flex-start;
  padding: 0 15px 0 14px;
  gap: 12px;
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(36, 28, 58, .09), 0 2px 6px rgba(20, 13, 38, .05), inset 0 1px rgba(255, 255, 255, .28);
}

.bottom-action-bar.single-action .floating-invite-button::before {
  opacity: .32;
}

.bottom-action-bar.single-action .floating-invite-button::after {
  border-color: rgba(255, 255, 255, .14);
}

.bottom-action-bar.single-action .floating-invite-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bottom-action-bar.single-action .floating-invite-button strong {
  font-size: 12px;
  letter-spacing: .2px;
}

.bottom-action-bar.single-action .floating-invite-button small {
  margin-top: 4px;
  color: rgba(255, 255, 255, .86);
  font-size: 8px;
}

.bottom-action-bar.single-action .floating-invite-icon {
  width: 36px;
  height: 36px;
  border-radius: 13px;
  font-size: 15px;
  box-shadow: 0 6px 14px rgba(37, 28, 58, .1), inset 0 1px rgba(255, 255, 255, .96);
}

.floating-invite-button.is-start {
  background: linear-gradient(135deg, #8254ed 0%, #6e3ed4 50%, #5525b9 100%);
  box-shadow: 0 11px 24px rgba(92, 45, 190, .28), 0 2px 7px rgba(57, 25, 124, .16), inset 0 1px rgba(255, 255, 255, .25);
}

.floating-invite-button.is-assist {
  background: linear-gradient(135deg, #526edc 0%, #445bcc 48%, #3345ad 100%);
  box-shadow: 0 11px 24px rgba(58, 78, 180, .25), 0 2px 7px rgba(32, 43, 112, .14), inset 0 1px rgba(255, 255, 255, .23);
}

.floating-invite-button.is-binding {
  color: #fff;
  background: linear-gradient(135deg, #128168 0%, #0e765e 48%, #08664f 100%);
  box-shadow: 0 11px 24px rgba(12, 125, 94, .24), 0 2px 7px rgba(4, 78, 59, .14), inset 0 1px rgba(255, 255, 255, .24);
}

.floating-invite-button.is-review {
  color: #4d3308;
  background: linear-gradient(135deg, #ffe294 0%, #f5bd50 50%, #df9829 100%);
  box-shadow: 0 11px 24px rgba(181, 119, 24, .22), 0 2px 7px rgba(105, 66, 8, .12), inset 0 1px rgba(255, 255, 255, .42);
}

.floating-invite-button.is-binding::after,
.floating-invite-button.is-review::after {
  border-color: rgba(255, 255, 255, .34);
}

.floating-invite-button.is-binding::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .38), transparent);
}

.floating-invite-button.is-review::before {
  display: none;
}

.floating-invite-button.is-binding small,
.floating-invite-button.is-review small {
  color: rgba(255, 255, 255, .78);
}

.floating-invite-button.is-review small {
  color: rgba(77, 51, 8, .74);
}

.floating-invite-button.is-binding .floating-invite-icon {
  color: #08735a;
  background: linear-gradient(145deg, #ffffff, #ddf9ef);
  box-shadow: 0 5px 12px rgba(3, 75, 56, .2), inset 0 1px #fff;
}

.floating-invite-button.is-review .floating-invite-icon {
  color: #a8660c;
  background: linear-gradient(145deg, #fffdf7, #fff0c9);
  box-shadow: 0 5px 12px rgba(112, 70, 8, .16), inset 0 1px #fff;
}

.bottom-action-bar.single-action .floating-invite-button.is-assist {
  background: linear-gradient(135deg, #526edc 0%, #445bcc 48%, #3345ad 100%);
}

.bottom-action-bar.single-action .floating-invite-button.is-start {
  background: linear-gradient(135deg, #8254ed 0%, #6e3ed4 50%, #5525b9 100%);
}

.bottom-action-bar.single-action .floating-invite-button.is-binding {
  background: linear-gradient(135deg, #128168 0%, #0e765e 48%, #08664f 100%);
}

.bottom-action-bar.single-action .floating-invite-button.is-review {
  background: linear-gradient(135deg, #ffe294 0%, #f5bd50 50%, #df9829 100%);
  border-color: rgba(126, 77, 8, .13);
}

.bottom-action-bar.single-action .floating-invite-button.is-review strong {
  color: #4d3308;
  text-shadow: none;
}

.bottom-action-bar.single-action .floating-invite-button.is-review small {
  color: rgba(77, 51, 8, .78);
}

.bottom-action-bar.single-action .floating-invite-button.is-binding strong {
  color: #fff;
  text-shadow: 0 1px 5px rgba(2, 72, 53, .22);
}

.bottom-action-bar.single-action .floating-invite-button.is-review .floating-invite-copy,
.bottom-action-bar.single-action .floating-invite-button.is-binding .floating-invite-copy {
  gap: 1px;
}

@keyframes inviteButtonShine {
  0%, 54% { left: -42%; opacity: 0; }
  60% { opacity: 1; }
  82%, 100% { left: 112%; opacity: 0; }
}

@keyframes inviteIconPulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-1px) scale(1.06); }
}

.reward-sheet-icon {
  color: #5b3a12;
  background: linear-gradient(145deg, #ffe47c, #f0ae37);
}

.invite-reward-overview {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 8px;
  margin: 14px 0 18px;
}

.invite-reward-overview > div {
  min-width: 0;
  padding: 12px 9px;
  border: 1px solid #eee9f5;
  border-radius: 15px;
  background: #faf8ff;
}

.invite-reward-overview > div:first-child {
  border-color: #efdf9f;
  background: linear-gradient(145deg, #fff9e8, #fff4ca);
}

.invite-reward-overview small,
.invite-reward-overview strong {
  display: block;
}

.invite-reward-overview small {
  color: #9991a2;
  font-size: 7px;
  white-space: nowrap;
}

.invite-reward-overview strong {
  margin-top: 6px;
  color: #3a3344;
  font-size: 12px;
}

.invite-reward-overview > div:first-child strong {
  color: #b77819;
  font-size: 17px;
}

.reward-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid #efecf4;
}

.reward-list-head strong { color: #37303f; font-size: 11px; }
.reward-list-head span { color: #9c95a5; font-size: 8px; }

.invite-reward-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #f0edf3;
}

.reward-avatar {
  width: 35px;
  height: 35px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  background: linear-gradient(145deg, #8a5ce9, #6637d4);
}

.invite-reward-row.welcome .reward-avatar {
  color: #765010;
  background: linear-gradient(145deg, #ffe47c, #f0ae37);
}

.invite-reward-row div { min-width: 0; flex: 1; }
.invite-reward-row strong, .invite-reward-row small { display: block; }
.invite-reward-row strong { color: #37303f; font-size: 9px; }
.invite-reward-row small { margin-top: 4px; color: #9c95a5; font-size: 7px; }
.invite-reward-row b { flex: none; color: #249a7c; font-size: 11px; }

.reward-scope-note {
  margin: 13px 0 0 !important;
  padding: 10px 11px;
  border-radius: 11px;
  color: #8d7d59 !important;
  background: #fff9ea;
}

.toast {
  bottom: calc(83px + var(--safe));
}

.invite-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 14px;
}

.invite-summary[hidden] {
  display: none;
}

.summary-chip {
  min-width: 0;
  padding: 9px 3px;
  text-align: center;
  border: 1px solid #eeeaf4;
  border-radius: 13px;
  background: #faf9fc;
}

.summary-chip strong,
.summary-chip span {
  display: block;
}

.summary-chip strong {
  color: #3a3344;
  font-size: 14px;
}

.summary-chip span {
  margin-top: 3px;
  color: #9a93a4;
  font-size: 8px;
}

.summary-chip.pending strong { color: #7950df; }
.summary-chip.success strong { color: #249a7c; }
.summary-chip.invalid strong { color: #d36b76; }

.invite-progress-list {
  margin-top: 10px;
}

.invite-progress-card {
  margin-top: 10px;
  padding: 13px;
  border: 1px solid #ece8f3;
  border-radius: 18px;
  background: #fcfbfe;
}

.invite-progress-card.success {
  border-color: #d7eee7;
  background: #f8fcfb;
}

.invite-progress-card.invalid {
  border-color: #f0dfe2;
  background: #fffafa;
}

.invite-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.invite-avatar {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(145deg, #8a5ce9, #6637d4);
  box-shadow: 0 6px 13px rgba(103, 54, 220, .14);
}

.invite-progress-card.success .invite-avatar { background: linear-gradient(145deg, #51c4a3, #279579); }
.invite-progress-card.invalid .invite-avatar { background: linear-gradient(145deg, #dd8a92, #c65e69); }

.invite-person {
  min-width: 0;
  flex: 1;
}

.invite-person strong,
.invite-person small {
  display: block;
}

.invite-person strong {
  overflow: hidden;
  color: #302a39;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invite-person small {
  margin-top: 4px;
  color: #aaa3b2;
  font-size: 7px;
}

.progress-status {
  flex: none;
  padding: 6px 8px;
  border-radius: 99px;
  color: #7042d8;
  font-size: 8px;
  font-weight: 700;
  background: #eee8ff;
}

.invite-progress-card.success .progress-status {
  color: #20886f;
  background: #e5f6f1;
}

.invite-progress-card.invalid .progress-status {
  color: #bd5863;
  background: #fae8ea;
}

.invite-stage-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 16px;
}

.invite-stage-track::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 10px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: #e5e0eb;
}

.stage-node {
  position: relative;
  z-index: 1;
  min-width: 0;
  text-align: center;
}

.stage-node i {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border: 2px solid #e2dce9;
  border-radius: 50%;
  color: #afa7b8;
  font-size: 7px;
  font-style: normal;
  font-weight: 800;
  background: #fcfbfe;
}

.stage-node span {
  display: block;
  margin-top: 6px;
  color: #a49dad;
  font-size: 7px;
  white-space: nowrap;
}

.stage-node.done i {
  border-color: #48b697;
  color: #fff;
  background: #48b697;
}

.stage-node.done span { color: #358e76; }

.stage-node.current i {
  border-color: #7b4ce8;
  color: #7042d8;
  background: #f1edff;
  box-shadow: 0 0 0 4px rgba(123, 76, 232, .1);
}

.stage-node.current span {
  color: #7042d8;
  font-weight: 700;
}

.invite-progress-card.invalid .stage-node.done i {
  border-color: #d57881;
  background: #d57881;
}

.invite-progress-card.invalid .stage-node.done span { color: #b85d67; }

.invite-progress-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px solid #efecf4;
}

.invite-progress-foot p {
  flex: 1;
  margin: 0;
  color: #8e8798;
  font-size: 8px;
  line-height: 1.55;
}

.unlocked-reward {
  flex: none;
  color: #249a7c;
  font-size: 11px;
}

.designed-empty {
  padding: 28px 15px 22px;
  text-align: center;
}

.empty-visual {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin: 0 auto 11px;
  border-radius: 15px;
  color: #7042d8;
  font-size: 17px;
  font-weight: 800;
  background: #f0ebff;
}

.claim-empty .empty-visual {
  color: #238f73;
  background: #eaf8f4;
}

.designed-empty strong {
  display: block;
  color: #383140;
  font-size: 12px;
}

.designed-empty p {
  max-width: 285px;
  margin: 7px auto 0;
  color: #9991a2;
  font-size: 8px;
  line-height: 1.7;
}

.empty-action {
  min-width: 118px;
  height: 35px;
  margin-top: 14px;
  padding: 0 16px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  font-size: 9px;
  font-weight: 750;
  background: linear-gradient(135deg, #7b4ce8, #6334d4);
  box-shadow: 0 7px 14px rgba(103, 54, 220, .16);
}

@media (min-width: 700px) {
  .app-shell {
    box-shadow: 0 18px 50px rgba(41, 28, 72, .12);
  }

  .bottom-action-bar {
    bottom: 20px;
    border: 1px solid rgba(224, 218, 235, .9);
    border-radius: 21px;
  }
}
