.page-invites {
  background: linear-gradient(180deg, #eef5ff 0%, #f9fcff 100%);
}

.invites-topbar {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 12px;
  background: linear-gradient(135deg, #095dff 0%, #0039d8 72%);
  color: #fff;
}

.invites-poster-link {
  justify-self: end;
  padding: 4px 10px;
  color: #ffe566;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255, 229, 102, 0.5);
  border-radius: 999px;
}

.invites-topbar h1 {
  margin: 0;
  font-size: 18px;
  text-align: center;
  font-weight: 700;
}

.invites-topbar .back-button {
  color: #fff;
  font-size: 36px;
  line-height: 1;
  text-decoration: none;
}

.invites-main {
  padding: 16px;
}

.invites-summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 20px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #095dff 0%, #0039d8 72%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 57, 216, 0.22);
}

.invites-summary p {
  margin: 0;
  font-size: 14px;
  opacity: 0.92;
}

.invites-summary strong {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}

.invites-summary span {
  font-size: 14px;
}

.invites-list-card {
  margin-top: 14px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(8, 21, 55, 0.06);
  overflow: hidden;
}

.invites-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(13, 59, 151, 0.08);
}

.invites-list-head h2 {
  margin: 0;
  font-size: 16px;
  color: #081537;
}

.invites-list-head small {
  color: #5a6f94;
  font-size: 12px;
}

.invites-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.invites-list li {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(13, 59, 151, 0.06);
}

.invites-list li:last-child {
  border-bottom: none;
}

.invite-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.invite-row-top strong {
  font-size: 15px;
  color: #081537;
}

.invite-row-top .badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 82, 217, 0.1);
  color: #0052d9;
}

.invite-row-meta {
  margin: 6px 0 0;
  font-size: 12px;
  color: #5a6f94;
  line-height: 1.5;
}

.invites-empty {
  text-align: center;
  color: #5a6f94;
  padding: 32px 16px !important;
}

.invites-share-card,
.invites-rewards-card {
  margin-top: 14px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(8, 21, 55, 0.06);
}

.invites-share-card > p {
  margin: 0 0 10px;
  font-size: 13px;
  color: #5a6f94;
}

.invites-share-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.invites-share-row code {
  display: block;
  overflow: hidden;
  padding: 8px 10px;
  font-size: 11px;
  color: #081537;
  word-break: break-all;
  background: #f4f8ff;
  border-radius: 8px;
}

.invites-share-copy {
  padding: 8px 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  background: #0052d9;
  border: 0;
  border-radius: 8px;
}

.invites-share-btn {
  width: 100%;
  margin-top: 10px;
  min-height: 40px;
  color: #0052d9;
  font-size: 14px;
  font-weight: 700;
  background: #eef4ff;
  border: 0;
  border-radius: 10px;
}

.reward-tier-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.reward-tier-item {
  padding: 12px 0;
  border-bottom: 1px solid rgba(13, 59, 151, 0.06);
}

.reward-tier-item:last-child {
  border-bottom: none;
}

.reward-tier-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.reward-tier-head strong {
  font-size: 14px;
}

.reward-tier-head span {
  font-size: 11px;
  color: #5a6f94;
}

.reward-tier-item.is-reached .reward-tier-head span {
  color: #2d9d6b;
  font-weight: 700;
}

.reward-tier-item p {
  margin: 0 0 8px;
  font-size: 12px;
  color: #5a6f94;
}

.reward-tier-bar {
  height: 6px;
  margin-bottom: 6px;
  background: #eef3fb;
  border-radius: 999px;
  overflow: hidden;
}

.reward-tier-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #095dff, #0039d8);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.reward-tier-item.is-reached .reward-tier-bar span {
  background: linear-gradient(90deg, #2d9d6b, #1e7a4a);
}

.reward-tier-item small {
  font-size: 11px;
  color: #8a96ad;
}
