.inviter-page {
  padding: 0 14px;
  background:
    radial-gradient(circle at 79% 8%, rgba(255, 176, 104, .23), transparent 26%),
    radial-gradient(circle at 4% 30%, rgba(255, 190, 142, .22), transparent 23%),
    #fff7ed;
}

.page-header {
  height: 64px;
  display: grid;
  grid-template-columns: 58px 1fr 58px;
  align-items: center;
  position: relative;
  z-index: 5;
}
.page-header strong { text-align: center; font-size: 17px; letter-spacing: .35px; white-space: nowrap; }
.nav-icon, .rule-entry { border: 0; background: transparent; cursor: pointer; }
.nav-icon { justify-self: start; width: 38px; height: 38px; padding: 0 0 4px; font-size: 36px; line-height: 1; }
.rule-entry { justify-self: end; padding: 8px 0; color: #67625d; font-size: 14px; }

.invite-hero { position: relative; height: 134px; margin: 0 -14px; overflow: hidden; }
.invite-hero::before { content: ""; position: absolute; width: 310px; height: 200px; left: -124px; top: 6px; border-radius: 50%; background: rgba(255,255,255,.43); filter: blur(3px); }
.hero-copy { position: relative; z-index: 4; padding: 12px 0 0 29px; }
.hero-copy h1 { margin: 0; font-size: 33px; line-height: 1.14; letter-spacing: 1px; }
.hero-copy h1 span { display: block; margin-top: 2px; font-size: 26px; letter-spacing: .8px; }
.hero-copy h1 em { color: var(--coral); font-style: normal; }
.mascot-wrap { position: absolute; z-index: 3; width: 190px; height: 164px; right: -2px; bottom: -30px; }
.mascot-wrap::before { content: ""; position: absolute; width: 168px; height: 77px; right: 1px; bottom: 3px; border-radius: 50%; background: radial-gradient(ellipse, rgba(242, 89, 66, .17), transparent 70%); filter: blur(8px); }
.mascot-wrap > img { position: absolute; z-index: 3; width: 136px; right: 7px; bottom: -1px; filter: drop-shadow(0 10px 13px rgba(115, 64, 17, .16)); }
.ai-coin { position: absolute; z-index: 4; left: 25px; bottom: 28px; width: 29px; height: 29px; display: grid; place-items: center; border: 3px solid #ffd681; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #ffb536, #f37818); box-shadow: 0 5px 9px rgba(210, 100, 18, .18), inset 0 0 0 2px #f18a1b; font-size: 7px; font-weight: 800; transform: rotate(-11deg); }
.spark { position: absolute; z-index: 3; color: var(--orange); }
.spark-a { left: 18px; top: 61px; font-size: 18px; }
.spark-b { right: 1px; top: 72px; color: #c889d0; font-size: 11px; }
.spark-c { left: 36px; top: 24px; color: #ff8737; font-size: 9px; transform: rotate(30deg); }

.benefit-strip {
  position: relative;
  z-index: 4;
  min-height: 96px;
  margin-top: 0;
  padding: 17px 86px 16px 19px;
  display: flex;
  align-items: center;
  border: 1px solid #f4d8b8;
  border-radius: 17px;
  background: rgba(255, 244, 226, .88);
  box-shadow: inset 0 1px rgba(255,255,255,.8);
}
.benefit-strip p { margin: 0 0 7px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.benefit-strip p:last-child { margin-bottom: 0; }
.benefit-strip strong { font-weight: 800; }
.benefit-strip em { color: var(--coral); font-size: 23px; font-style: normal; font-weight: 800; }
.gift-reference { position: absolute; right: 19px; bottom: 10px; width: 66px; height: auto; filter: drop-shadow(0 6px 7px rgba(204,77,25,.13)); }
.benefit-spark { position: absolute; right: 18px; top: 12px; z-index: 2; color: #ff9b2d; font-size: 13px; }

.demo-switcher {
  margin-top: 10px;
  padding: 9px 10px 10px;
  border: 1px dashed #e7caaa;
  border-radius: 14px;
  background: rgba(255,255,255,.55);
}
.demo-switcher > span { display: block; margin: 0 3px 7px; color: #a47c58; font-size: 9px; font-weight: 700; letter-spacing: .5px; }
.state-options { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.state-options::-webkit-scrollbar { display: none; }
.state-options button { flex: 0 0 auto; min-height: 29px; padding: 0 10px; border: 1px solid #e7ded5; border-radius: 999px; color: #746e68; background: #fff; font-size: 10px; cursor: pointer; }
.state-options button.active { color: #fff; border-color: var(--coral); background: var(--coral); box-shadow: 0 3px 8px rgba(246,79,73,.18); }

.content-card { margin-top: 12px; padding: 17px 16px; border: 1px solid rgba(79, 61, 43, .08); border-radius: 18px; background: rgba(255,255,255,.92); box-shadow: 0 6px 18px rgba(76, 56, 33, .06); }
.card-title-row { display: flex; align-items: center; justify-content: space-between; }
.card-title-row h2, .steps-section h2 { margin: 0; font-size: 17px; }
.card-title-row h2 span { color: #797570; font-size: 14px; font-weight: 600; }
.reward-status { padding: 4px 8px; border-radius: 999px; color: #a49e97; background: #f5f2ef; font-size: 10px; }
.reward-status.active { color: #ef514c; background: #fff0ee; }

.progress-track { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin: 24px -2px 13px; }
.track-line { position: absolute; left: 16.66%; right: 16.66%; top: 16px; height: 3px; overflow: hidden; background: #ddd; }
.track-line i { display: block; width: 0; height: 100%; background: var(--coral); transition: width .3s ease; }
.progress-node { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.progress-node b { width: 34px; height: 34px; display: grid; place-items: center; border: 4px solid #fff; border-radius: 50%; color: #fff; background: #cfcfcf; box-shadow: 0 0 0 1px #dbd9d7; font-size: 15px; }
.progress-node span { margin-top: 7px; color: #77726d; font-size: 10px; white-space: nowrap; }
.progress-node.complete b { background: var(--coral); box-shadow: 0 0 0 1px #fb7c77, 0 4px 8px rgba(246,79,73,.19); }
.points-total { min-height: 50px; margin-top: 4px; padding-top: 13px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.points-total > span { font-size: 15px; font-weight: 700; }
.points-total strong { color: var(--coral); font-size: 27px; }
.points-total small { margin-left: 5px; color: #4f4b47; font-size: 11px; font-weight: 500; }

.tracking-heading { align-items: flex-start; }
.tracking-heading p { margin: 5px 0 0; color: #9a958f; font-size: 11px; }
.tracking-summary { color: #9c9690; font-size: 11px; }
.tracking-list { margin-top: 10px; }
.tracking-empty { min-height: 68px; display: flex; align-items: center; justify-content: center; gap: 10px; color: #aaa49d; border: 1px solid #eeeae5; border-radius: 12px; background: #fbfaf8; font-size: 11px; }
.tracking-empty span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #f0eeeb; font-size: 15px; }
.tracking-row { min-height: 62px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.tracking-row:last-child { border-bottom: 0; }
.tracking-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #ff9f54, #f15c4d); font-size: 12px; font-weight: 700; }
.tracking-row div:nth-child(2) { display: flex; flex: 1; flex-direction: column; gap: 3px; }
.tracking-row strong { font-size: 12px; }
.tracking-row small { color: #aaa49d; font-size: 9px; }
.tracking-row > span:last-child { min-width: 62px; text-align: right; color: var(--coral); font-size: 10px; font-weight: 700; }
.tracking-row.pending .tracking-avatar { color: #8c8781; background: #eeece9; }
.tracking-row.pending > span:last-child { color: #e08a36; }

.steps-section { position: relative; overflow: hidden; padding-right: 68px; }
.steps-section ol { margin: 13px 0 0; padding: 0; list-style: none; }
.steps-section li { min-height: 31px; display: flex; align-items: center; gap: 9px; color: #66615c; font-size: 12px; }
.steps-section li b { flex: 0 0 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--coral); font-size: 12px; }
.mini-gift { position: absolute; right: 12px; bottom: 16px; font-size: 47px; transform: rotate(8deg); filter: drop-shadow(0 6px 6px rgba(189,83,38,.13)); }

.cta-spacer { height: 100px; }
.sticky-cta { position: fixed; z-index: 20; bottom: 0; left: 50%; width: min(100%, 430px); padding: 13px 22px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(255,247,237,0), rgba(255,247,237,.96) 25%, #fff7ed 100%); transform: translateX(-50%); }

@media (max-width: 360px) {
  .hero-copy { padding-left: 20px; }
  .hero-copy h1 { font-size: 29px; }
  .hero-copy h1 span { font-size: 23px; }
  .mascot-wrap { right: -18px; }
  .benefit-strip { padding-left: 14px; padding-right: 72px; }
  .benefit-strip p { font-size: 12px; }
  .benefit-strip em { font-size: 20px; }
  .page-header strong { font-size: 15px; }
}
