:root {
  --navy: #06162f;
  --ink: #10203f;
  --text: #243456;
  --muted: #71809d;
  --primary: #3658ff;
  --primary-dark: #233ac4;
  --violet: #7a35ff;
  --magenta: #e842bd;
  --cyan: #17d6cb;
  --mint: #14b885;
  --gold: #ffbe3d;
  --orange: #ff8f3f;
  --success: #088a61;
  --danger: #d8284a;
  --soft: #f5f7ff;
  --card: rgba(255, 255, 255, 0.96);
  --line: rgba(17, 33, 72, 0.11);
  --shadow: 0 30px 80px rgba(20, 33, 77, 0.22);
  --shadow-soft: 0 18px 42px rgba(54, 88, 255, 0.18);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
}

body {
  background:
    radial-gradient(circle at 8% 8%, rgba(122, 53, 255, 0.26), transparent 28%),
    radial-gradient(circle at 92% 16%, rgba(23, 214, 203, 0.22), transparent 24%),
    radial-gradient(circle at 52% 102%, rgba(255, 190, 61, 0.18), transparent 30%),
    linear-gradient(145deg, #edf4ff 0%, #f7fbff 46%, #fff7ea 100%);
}

button,
input,
select {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 14px;
  position: relative;
  overflow: hidden;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: absolute;
  width: 310px;
  height: 310px;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.5;
  z-index: 0;
}

.page-shell::before {
  top: -132px;
  right: -96px;
  background: linear-gradient(135deg, rgba(54, 88, 255, 0.34), rgba(232, 66, 189, 0.18));
}

.page-shell::after {
  bottom: -132px;
  left: -98px;
  background: linear-gradient(135deg, rgba(23, 214, 203, 0.28), rgba(255, 190, 61, 0.2));
}

.campaign-card {
  width: min(100%, 482px);
  position: relative;
  z-index: 1;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(16px);
  animation: pageCardIn 460ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.is-redirecting .campaign-card {
  animation: pageCardOut 360ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 22, 47, 0.58);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: blur(0);
  transition: opacity 260ms ease, visibility 260ms ease, backdrop-filter 260ms ease;
}

.page-transition[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  backdrop-filter: blur(10px);
}

.transition-card {
  width: min(100%, 330px);
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 24px 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 18%, rgba(23, 214, 203, 0.32), transparent 28%),
    linear-gradient(135deg, rgba(7, 27, 88, 0.96), rgba(54, 88, 255, 0.92) 52%, rgba(122, 53, 255, 0.94));
  box-shadow: 0 28px 70px rgba(6, 22, 47, 0.38);
  text-align: center;
  transform: translateY(12px) scale(0.96);
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.page-transition[aria-hidden="false"] .transition-card {
  transform: translateY(0) scale(1);
}

.transition-slider {
  width: 100%;
  max-width: 240px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.transition-slides {
  width: 300%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  animation: transitionSlideShow 960ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.transition-slides span {
  min-height: 58px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.transition-card strong {
  font-size: 18px;
  letter-spacing: -0.2px;
}

.transition-card #transitionMessage {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.35;
}

.transition-progress {
  width: min(100%, 220px);
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.transition-progress::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fff, var(--cyan));
  transform-origin: left;
  animation: transitionProgress 960ms ease both;
}

@keyframes pageCardIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pageCardOut {
  to {
    opacity: 0;
    transform: translateY(-10px) scale(0.985);
  }
}

@keyframes transitionSlideShow {
  0%,
  22% {
    transform: translateX(0);
  }
  40%,
  62% {
    transform: translateX(-33.333%);
  }
  80%,
  100% {
    transform: translateX(-66.666%);
  }
}

@keyframes transitionProgress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .campaign-card,
  .is-redirecting .campaign-card,
  .transition-slides,
  .transition-progress::before {
    animation: none;
  }

  .page-transition,
  .transition-card {
    transition: none;
  }
}

.hero-panel {
  position: relative;
  min-height: 210px;
  padding: 14px 24px 38px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 30%, rgba(255,255,255,0.22), transparent 20%),
    radial-gradient(circle at 18% 92%, rgba(23, 214, 203, 0.24), transparent 24%),
    linear-gradient(135deg, #071b58 0%, #2447de 47%, #7a35ff 100%);
  overflow: hidden;
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero-panel::before {
  width: 184px;
  height: 184px;
  right: -76px;
  top: 30px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-panel::after {
  width: 650px;
  height: 116px;
  left: -86px;
  right: -86px;
  bottom: -88px;
  background: #fff;
  border-radius: 50% 50% 0 0;
}

.step-badge {
  width: fit-content;
  margin: 0 auto 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.2px;
  background: rgba(6, 22, 47, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14);
}

.progress-row {
  width: min(230px, 72%);
  margin: 0 auto 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 8px;
}

.progress-step {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.13);
}

.progress-step.active {
  background: linear-gradient(90deg, #fff, var(--cyan));
  box-shadow: 0 0 18px rgba(23, 214, 203, 0.45);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: min(100%, 308px);
}

.hero-kicker {
  width: fit-content;
  margin-bottom: 7px;
  padding: 5px 8px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-panel h1 {
  margin: 0 0 7px;
  font-size: clamp(28px, 6.8vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.6px;
}

.hero-panel p {
  margin: 0;
  max-width: 292px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.38;
  text-shadow: 0 1px 18px rgba(6, 22, 47, 0.38);
}

.hero-art {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 18px;
  width: 104px;
  height: 104px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  transform: rotate(-3deg);
  background:
    radial-gradient(circle at 30% 24%, rgba(255,255,255,0.44), transparent 25%),
    linear-gradient(145deg, rgba(255,255,255,0.34), rgba(255,255,255,0.13));
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 18px 38px rgba(6, 22, 47, 0.22);
  backdrop-filter: blur(8px);
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 16px 13px 13px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
}

.hero-art::after {
  content: "";
  position: absolute;
  width: 82px;
  height: 18px;
  left: 23px;
  bottom: 20px;
  border-radius: 50%;
  background: rgba(6, 22, 47, 0.18);
  filter: blur(12px);
}

.gift-box {
  position: relative;
  width: 66px;
  height: 68px;
  display: block;
  filter: drop-shadow(0 13px 18px rgba(6, 22, 47, 0.25));
}

.gift-body,
.gift-lid {
  position: absolute;
  left: 7px;
  right: 7px;
  background: linear-gradient(135deg, #ffd859 0%, #ffb832 48%, #ff8f3f 100%);
  border-radius: 7px;
  box-shadow: inset -8px 0 0 rgba(202, 79, 36, 0.14), inset 0 1px 0 rgba(255,255,255,0.4);
}

.gift-body {
  height: 45px;
  bottom: 0;
}

.gift-lid {
  height: 14px;
  top: 13px;
  left: 3px;
  right: 3px;
}

.gift-ribbon {
  position: absolute;
  top: 13px;
  bottom: 0;
  left: 50%;
  width: 12px;
  border-radius: 5px;
  background: linear-gradient(180deg, #ff3f61, #d8284a);
  transform: translateX(-50%);
  box-shadow: inset 2px 0 0 rgba(255,255,255,0.18);
}

.gift-bow {
  position: absolute;
  top: 0;
  width: 24px;
  height: 21px;
  border-radius: 15px 15px 5px 15px;
  background: linear-gradient(135deg, #ff526e, #e32043);
  box-shadow: inset 2px 2px 0 rgba(255,255,255,0.18);
}

.gift-bow-left {
  left: 10px;
  transform: rotate(28deg);
}

.gift-bow-right {
  right: 10px;
  transform: scaleX(-1) rotate(28deg);
}

.confetti {
  position: absolute;
  z-index: 1;
  width: 10px;
  height: 22px;
  border-radius: 999px;
  opacity: 0.96;
}

.c1 { top: 88px; left: 40px; background: #ff4fc4; transform: rotate(34deg); }
.c2 { top: 121px; right: 92px; background: #ffcf4d; transform: rotate(-28deg); }
.c3 { top: 52px; right: 42px; background: #13e0d2; transform: rotate(38deg); }
.c4 { top: 176px; right: 152px; background: #a675ff; transform: rotate(-42deg); }

.content-area {
  position: relative;
  padding: 22px 24px 27px;
  background:
    linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.97) 60%, rgba(245,248,255,0.98) 100%);
}

.status-strip,
.info-strip,
.success-strip {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 9px 11px;
  border-radius: 14px;
  margin-bottom: 11px;
  font-size: 12.5px;
  line-height: 1.35;
}

.status-strip {
  color: #075f40;
  background: rgba(8, 138, 97, 0.1);
  border: 1px solid rgba(8, 138, 97, 0.18);
}

.status-icon,
.info-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 950;
  background: var(--success);
  box-shadow: 0 10px 20px rgba(8, 138, 97, 0.16);
}

.info-strip {
  color: var(--text);
  background: #f4f7ff;
  border: 1px solid var(--line);
}

.info-icon {
  background: linear-gradient(135deg, var(--primary), var(--violet));
}

.journey-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  padding: 7px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(54,88,255,0.05), rgba(23,214,203,0.06));
}

.journey-step {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 7px 4px;
  border-radius: 13px;
  background: rgba(255,255,255,0.76);
  color: var(--text);
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  line-height: 1.18;
}

.journey-step span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(54,88,255,0.12), rgba(122,53,255,0.12));
  font-size: 14px;
}

.form-card,
.reward-card,
.referral-panel,
.summary-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 18px 42px rgba(34, 43, 69, 0.08);
}

.form-card {
  padding: 20px;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.card-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 28px;
  background: linear-gradient(135deg, rgba(54,88,255,0.13), rgba(122,53,255,0.12));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.78);
}

.card-title h2,
.referral-panel h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.4px;
}

.card-title p,
.referral-panel p,
.input-help {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.input-group {
  display: grid;
  gap: 8px;
}

.input-group label {
  font-weight: 900;
  font-size: 14px;
  color: var(--ink);
}

.required {
  color: var(--danger);
}

.input-shell {
  position: relative;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(17, 33, 72, 0.14);
  border-radius: 18px;
  padding: 0 14px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.input-shell:focus-within {
  border-color: rgba(54, 88, 255, 0.85);
  box-shadow: 0 0 0 4px rgba(54, 88, 255, 0.11);
  transform: translateY(-1px);
}

.input-group.has-error .input-shell {
  border-color: rgba(216, 40, 74, 0.78);
  box-shadow: 0 0 0 4px rgba(216, 40, 74, 0.09);
}

.input-shell .input-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: rgba(54, 88, 255, 0.08);
  font-size: 18px;
}

.input-shell input,
.input-shell select {
  width: 100%;
  min-height: 54px;
  border: 0;
  padding: 0;
  color: var(--ink);
  outline: none;
  background: transparent;
  font-size: 16px;
}

#uniqueCode,
#referralCode {
  text-transform: uppercase;
}

.input-shell input::placeholder {
  color: #98a3bb;
}

.input-shell select {
  appearance: none;
  cursor: pointer;
  padding-right: 20px;
}

.input-shell select:disabled {
  cursor: not-allowed;
  color: var(--muted);
}

.input-shell:has(select)::after {
  content: "";
  position: absolute;
  right: 16px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  pointer-events: none;
  transform: translateY(-2px) rotate(45deg);
}

.field-error {
  margin: -2px 0 0;
  color: var(--danger);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.35;
}

.field-error[hidden] {
  display: none;
}

.primary-btn,
.secondary-btn,
.copy-btn,
.outline-btn {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 18px;
  padding: 0 18px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: -0.1px;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, #3658ff 0%, #7a35ff 100%);
  box-shadow: var(--shadow-soft);
}

.secondary-btn {
  color: #fff;
  background: linear-gradient(135deg, #0b9a74 0%, #17d6cb 100%);
  box-shadow: 0 14px 28px rgba(23, 214, 203, 0.2);
}

.copy-btn,
.outline-btn {
  color: var(--primary);
  background: #fff;
  border: 1px solid rgba(54, 88, 255, 0.42);
}

.primary-btn:hover,
.secondary-btn:hover,
.copy-btn:hover,
.outline-btn:hover {
  transform: translateY(-1px);
}

.primary-btn:active,
.secondary-btn:active,
.copy-btn:active,
.outline-btn:active {
  transform: translateY(0);
}

.primary-btn:disabled,
.secondary-btn:disabled,
.copy-btn:disabled,
.outline-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.terms-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.terms-note strong {
  color: var(--primary);
}

.message-box {
  margin: 16px 0 0;
  padding: 13px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
  border: 1px solid transparent;
}

.message-box.info {
  color: var(--primary-dark);
  background: rgba(54, 88, 255, 0.09);
  border-color: rgba(54, 88, 255, 0.16);
}

.message-box.success {
  color: var(--success);
  background: rgba(8, 138, 97, 0.1);
  border-color: rgba(8, 138, 97, 0.18);
}

.message-box.error {
  color: var(--danger);
  background: rgba(216, 40, 74, 0.09);
  border-color: rgba(216, 40, 74, 0.16);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(6, 22, 47, 0.6);
  backdrop-filter: blur(9px);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  width: min(100%, 390px);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.modal-card::before {
  content: "";
  display: block;
  height: 5px;
  width: 72px;
  margin: -7px auto 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.modal-close:hover {
  color: var(--ink);
  border-color: rgba(54, 88, 255, 0.42);
}

.otp-message {
  padding: 12px 13px;
  border: 1px solid rgba(216, 40, 74, 0.16);
  border-radius: 14px;
  color: var(--danger);
  background: rgba(216, 40, 74, 0.09);
  font-size: 13px;
  line-height: 1.4;
}

.footer-note,
.link-btn {
  text-align: center;
}

.footer-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
  padding: 12px 5px 0;
  border-top: 1px solid var(--line);
}

.feature-item {
  display: grid;
  place-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.feature-item span:first-child {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(54, 88, 255, 0.08);
  font-size: 17px;
}

.summary-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  margin-bottom: 18px;
}

.summary-card strong {
  display: block;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.summary-card div span {
  display: block;
  margin-top: 3px;
  font-size: 18px;
  font-weight: 950;
  color: var(--ink);
}

.summary-card .card-icon {
  display: grid;
  margin-top: 0;
  font-size: 24px;
  line-height: 1;
}

.flow-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.flow-item {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.flow-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f2f5fb;
  border: 1px solid var(--line);
  font-size: 20px;
}

.flow-item.active {
  color: var(--primary);
}

.flow-item.active .flow-icon {
  color: #fff;
  background: linear-gradient(135deg, #3658ff, #7a35ff);
  box-shadow: 0 12px 25px rgba(54, 88, 255, 0.22);
}

.reward-card {
  padding: 18px;
  margin-bottom: 18px;
  background:
    radial-gradient(circle at 96% 0%, rgba(255, 190, 61, 0.2), transparent 26%),
    linear-gradient(135deg, rgba(8, 138, 97, 0.09), rgba(23, 214, 203, 0.07));
  border-color: rgba(8, 138, 97, 0.2);
}

.reward-box {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}

.reward-icon {
  width: 66px;
  height: 66px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-size: 34px;
  background: rgba(8, 138, 97, 0.12);
}

.reward-box h2 {
  margin: 0 0 5px;
  font-size: 22px;
}

.reward-box p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.reward-value-pill {
  min-width: 82px;
  padding: 10px 12px;
  border-radius: 18px;
  color: var(--success);
  background: #fff;
  text-align: center;
  font-size: 30px;
  font-weight: 950;
  box-shadow: 0 10px 25px rgba(8, 138, 97, 0.08);
}

.reward-meta {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.meta-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  font-size: 14px;
}

.meta-item strong {
  color: var(--muted);
  font-weight: 900;
}

.referral-panel {
  padding: 18px;
  margin-top: 18px;
  position: relative;
  overflow: hidden;
}

.referral-panel::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -68px;
  bottom: -72px;
  border-radius: 999px;
  background: rgba(122, 53, 255, 0.08);
}

.referral-output {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.referral-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  align-items: stretch;
  gap: 8px;
}

.referral-code {
  min-height: 68px;
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(54,88,255,0.07), rgba(122,53,255,0.08));
  border: 1px dashed rgba(122, 53, 255, 0.52);
  color: var(--violet);
  font-size: 28px;
  font-weight: 950;
  letter-spacing: 2px;
  word-break: break-all;
}

.copy-icon-btn {
  width: 46px;
  min-height: 68px;
  border: 1px solid rgba(54, 88, 255, 0.42);
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: #fff;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(54, 88, 255, 0.08);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.copy-icon-btn svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.copy-icon-btn:hover {
  border-color: rgba(54, 88, 255, 0.72);
  box-shadow: 0 14px 28px rgba(54, 88, 255, 0.14);
  transform: translateY(-1px);
}

.copy-icon-btn:active {
  transform: translateY(0);
}

.link-btn {
  display: block;
  margin-top: 16px;
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 950;
}

.referral-tip {
  margin: 12px 0 0;
  padding: 12px 13px;
  border-radius: 16px;
  color: var(--text);
  background: rgba(255, 190, 61, 0.13);
  border: 1px solid rgba(255, 190, 61, 0.22);
  font-size: 12.5px;
  line-height: 1.45;
}

@media (max-width: 420px) {
  .page-shell {
    padding: 0;
    place-items: stretch;
  }

  .campaign-card {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    border: 0;
  }

  .hero-panel {
    min-height: 214px;
    padding: 14px 20px 40px;
  }

  .hero-panel h1 {
    font-size: clamp(27px, 8vw, 34px);
  }

  .hero-panel p {
    max-width: min(100%, 318px);
    font-size: 14.5px;
  }

  .hero-art {
    width: 88px;
    height: 88px;
    right: 18px;
    bottom: 12px;
    border-radius: 24px;
  }

  .hero-art::after {
    width: 58px;
    left: 16px;
    bottom: 13px;
  }

  .gift-box {
    width: 48px;
    height: 50px;
  }

  .gift-body {
    height: 33px;
  }

  .gift-lid {
    height: 11px;
    top: 9px;
  }

  .gift-ribbon {
    top: 9px;
    width: 9px;
  }

  .gift-bow {
    width: 18px;
    height: 16px;
  }

  .gift-bow-left {
    left: 7px;
  }

  .gift-bow-right {
    right: 7px;
  }

  .content-area {
    padding: 20px 18px 24px;
  }

  .journey-card {
    gap: 5px;
  }

  .journey-step {
    padding: 6px 3px;
    font-size: 9.5px;
  }

  .form-card,
  .reward-card,
  .referral-panel,
  .summary-card {
    border-radius: 23px;
  }

  .card-title {
    gap: 12px;
  }

  .card-icon {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    font-size: 25px;
  }

  .reward-box {
    grid-template-columns: auto 1fr;
  }

  .reward-value-pill {
    grid-column: 1 / -1;
    width: 100%;
  }
}
