.activation-page {
  min-height: calc(100dvh - var(--topbar-height, 72px));
  padding: max(18px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 50% 0, rgba(255, 122, 0, .13), transparent 38%),
    #101010;
}

.activation-card {
  width: min(100%, 620px);
  margin: 0 auto;
  padding: clamp(18px, 5vw, 34px);
  color: #f7f7f7;
  background: linear-gradient(150deg, rgba(37, 37, 37, .98), rgba(20, 20, 20, .98));
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 24px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .38);
  overflow: hidden;
}

.activation-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.activation-card__header img { width: 42px; height: 42px; object-fit: contain; }
.activation-card__header div { display: grid; gap: 2px; }
.activation-card__header small,
.activation-card__view > small { color: #ff7a00; font-weight: 800; letter-spacing: .12em; }
.activation-card__header strong { font-size: .95rem; }

.activation-card__back {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  color: #fff;
  background: #292929;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 14px;
  font-size: 1.35rem;
}

.activation-card__view { display: none; }
.activation-card__view.is-active { display: block; }
.activation-card [hidden] { display: none !important; }
.activation-card h1 { margin: 8px 0 12px; font-size: clamp(1.65rem, 7vw, 2.45rem); line-height: 1.08; }
.activation-card h2 { margin: 0 0 8px; font-size: 1.18rem; }
.activation-card p { color: #c9c9c9; line-height: 1.55; }
.activation-card__status { min-height: 1.4em; margin-bottom: 4px; color: #ffb36b; }

.activation-card__loading {
  min-height: 240px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.activation-card__loading span {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255, 122, 0, .22);
  border-top-color: #ff7a00;
  border-radius: 50%;
  animation: activation-spin .8s linear infinite;
}

@keyframes activation-spin { to { transform: rotate(360deg); } }

.activation-card__notice,
.activation-card__form {
  margin-top: 20px;
  padding: 18px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
}

.activation-card__notice { color: #ddd; line-height: 1.5; border-left: 3px solid #ff7a00; }
.activation-card__form { display: grid; gap: 12px; }
.activation-card label { color: #f5f5f5; font-weight: 750; }
.activation-card input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  color: #fff;
  background: #111;
  border: 1px solid #555;
  border-radius: 13px;
  font: inherit;
  font-size: 16px;
}

.activation-card__code { text-align: center; font-size: 1.5rem !important; letter-spacing: .3em; }
.activation-card button { min-height: 46px; cursor: pointer; font: inherit; font-weight: 800; }
.activation-card button:disabled { cursor: wait; opacity: .62; }
.activation-card button:focus-visible,
.activation-card input:focus-visible { outline: 3px solid rgba(255, 154, 61, .55); outline-offset: 3px; }

.activation-card__primary,
.activation-card__secondary {
  width: 100%;
  margin-top: 8px;
  padding: 12px 16px;
  border-radius: 14px;
}

.activation-card__primary { color: #17100a; background: #ff7a00; border: 1px solid #ff9b3d; }
.activation-card__secondary { color: #fff; background: transparent; border: 1px solid #666; }
.activation-card__links { display: grid; gap: 4px; margin-top: 4px; }
.activation-card__links button { color: #ffad60; background: transparent; border: 0; text-decoration: underline; text-underline-offset: 3px; }
.activation-card__error { margin: 0; color: #ff8d82 !important; }
.activation-card__message { min-height: 1.3em; margin: 0; color: #ffbd7d !important; }

@media (max-width: 380px) {
  .activation-page { padding-inline: 10px; }
  .activation-card { padding: 16px 14px 20px; border-radius: 19px; }
  .activation-card__header { gap: 8px; }
  .activation-card__header img { width: 36px; height: 36px; }
  .activation-card__form { padding: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .activation-card__loading span { animation-duration: 1.8s; }
}
