:root {
  --deep: #103f3b;
  --teal: #256c60;
  --mint: #9cd3b7;
  --orange: #e66a49;
  --cream: #f8efe2;
  --paper: #fbfcfa;
  --ink: #17322f;
  --muted: #6f7d79;
  --line: #dce7e2;
  --error: #b04631;
  --shadow: 0 28px 70px rgba(17, 57, 51, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #edf4f0;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(156, 211, 183, 0.42), transparent 26rem),
    radial-gradient(circle at 92% 92%, rgba(230, 106, 73, 0.16), transparent 30rem),
    #edf4f0;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.activation-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  min-height: 100vh;
}

.activation-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(36px, 6vw, 88px);
  color: #fff;
  background:
    linear-gradient(145deg, rgba(156, 211, 183, 0.14), transparent 42%),
    var(--deep);
}

.activation-visual::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -16%;
  width: 44vw;
  height: 44vw;
  border: clamp(52px, 7vw, 104px) solid rgba(156, 211, 183, 0.12);
  border-radius: 50%;
}

.activation-visual::after {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -180px;
  width: 390px;
  height: 390px;
  border: 72px solid rgba(230, 106, 73, 0.72);
  border-radius: 50%;
}

.brand-lockup {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-lockup img {
  width: 58px;
  height: 58px;
  border-radius: 17px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.visual-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: auto 0;
  padding: 52px 0;
}

.eyebrow,
.mini-label {
  color: var(--mint);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.visual-copy h1 {
  margin: 20px 0 24px;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.visual-copy p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  line-height: 1.9;
}

.activation-flow {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.activation-flow li {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 16px;
  background: rgba(16, 63, 59, 0.72);
  color: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(8px);
}

.activation-flow li.active {
  border-color: rgba(156, 211, 183, 0.48);
  background: rgba(156, 211, 183, 0.13);
  color: #fff;
}

.activation-flow b,
.activation-flow span {
  display: block;
}

.activation-flow b {
  margin-bottom: 12px;
  color: var(--orange);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.activation-flow span {
  font-size: 13px;
  font-weight: 700;
}

.security-note {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
}

.security-note strong {
  flex: 0 0 auto;
  color: var(--mint);
}

.activation-card {
  align-self: center;
  width: min(100% - 40px, 610px);
  margin: 28px auto;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  padding: clamp(24px, 4vw, 46px);
  background: rgba(251, 252, 250, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.card-head,
.card-title,
.setup-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.back-link {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover {
  color: var(--teal);
}

.step-badge,
.time-note {
  border-radius: 999px;
  padding: 7px 11px;
  background: #e8f3ed;
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
}

.card-title {
  justify-content: flex-start;
  margin: 28px 0 30px;
}

.card-title img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
}

.card-title h2 {
  margin: 0 0 7px;
  font-size: 27px;
  letter-spacing: -0.03em;
}

.card-title p,
.setup-panel p,
.success-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: #3f4e4a;
  font-size: 12px;
  font-weight: 800;
}

.field input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  padding: 0 15px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(37, 108, 96, 0.1);
}

.field small {
  display: block;
  margin-top: 7px;
  color: #899590;
  font-size: 10px;
  line-height: 1.55;
}

.primary-button {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  background: var(--orange);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(230, 106, 73, 0.22);
}

.primary-button:hover {
  filter: brightness(0.96);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.form-error {
  margin: 0 0 14px;
  border: 1px solid #f1c2b8;
  border-radius: 12px;
  padding: 11px 13px;
  background: #fdeae5;
  color: var(--error);
  font-size: 12px;
  line-height: 1.55;
}

.form-error[hidden],
#smsForm[hidden] {
  display: none;
}

.success-banner {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-bottom: 18px;
  border: 1px solid #cee8da;
  border-radius: 16px;
  padding: 14px;
  background: #eef8f2;
}

.success-banner > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-weight: 900;
}

.success-banner strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.setup-panel {
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: #f6faf7;
}

.setup-title {
  align-items: flex-start;
}

.setup-title h3 {
  margin: 7px 0 0;
  font-size: 16px;
}

.setup-panel > p {
  margin: 14px 0;
}

.secret-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px dashed #b7d5c7;
  border-radius: 13px;
  padding: 13px;
  background: #fff;
}

.secret-box code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--deep);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.secret-box button {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.card-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: #8b9692;
  font-size: 10px;
}

.card-foot a {
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

.activation-shell.merchant .primary-button {
  background: var(--teal);
  box-shadow: 0 12px 24px rgba(37, 108, 96, 0.22);
}

@media (max-width: 980px) {
  .activation-shell {
    grid-template-columns: 1fr;
  }

  .activation-visual {
    min-height: auto;
    padding: 28px 24px 46px;
  }

  .visual-copy {
    margin: 54px 0 30px;
    padding: 0;
  }

  .visual-copy h1 {
    font-size: clamp(36px, 9vw, 58px);
  }

  .activation-card {
    margin: -28px auto 28px;
  }
}

@media (max-width: 620px) {
  .activation-visual {
    padding: 22px 18px 42px;
  }

  .brand-lockup img {
    width: 48px;
    height: 48px;
  }

  .activation-flow {
    grid-template-columns: 1fr;
  }

  .activation-flow li {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
  }

  .activation-flow b {
    margin: 0;
  }

  .security-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .activation-card {
    width: calc(100% - 24px);
    border-radius: 24px;
    padding: 22px 18px;
  }

  .card-head {
    align-items: flex-start;
  }

  .card-title img {
    display: none;
  }

  .card-title h2 {
    font-size: 24px;
  }

  .setup-title {
    flex-direction: column;
  }

  .secret-box {
    align-items: flex-start;
    flex-direction: column;
  }

  .card-foot {
    align-items: flex-start;
    flex-direction: column;
  }
}
