* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

:root {
  --bg: #0d0f17;
  --card: #151925;
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #3b82f6;
  --accent-2: #60a5fa;
}

body.activation-page {
  min-height: 100vh;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 20%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 34rem),
    linear-gradient(180deg, #0b0e15 0%, var(--bg) 100%);
}

.theme-instagram {
  --accent: #c13584;
  --accent-2: #f77737;
}

.theme-whatsapp {
  --accent: #22c55e;
  --accent-2: #16a34a;
}

.theme-messenger {
  --accent: #2486ff;
  --accent-2: #a855f7;
}

.theme-telegram {
  --accent: #2aabee;
  --accent-2: #60a5fa;
}

.activation-app {
  width: min(980px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.activation-nav {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.activation-nav a {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.activation-step {
  flex: 1;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 0;
  text-align: center;
  animation: fadeUp 260ms ease both;
}

.activation-step.is-active {
  display: flex;
}

.app-icon {
  width: 112px;
  height: 112px;
  object-fit: contain;
  border-radius: 24px;
  margin-bottom: 28px;
}

.activation-step h1,
.activation-step h2 {
  max-width: 760px;
  font-size: clamp(42px, 8vw, 76px);
  line-height: 1.02;
  font-weight: 900;
}

.activation-step h2 {
  font-size: clamp(34px, 6vw, 56px);
}

.activation-step h1 span,
.activation-step h2 span {
  display: block;
  color: var(--accent-2);
}

.activation-step p {
  max-width: 620px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.step-label {
  margin: 0 0 10px;
  color: var(--accent-2) !important;
  font-size: 12px !important;
  font-weight: 900;
  text-transform: uppercase;
}

.primary-action,
.device-grid button {
  margin-top: 34px;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 18px 38px color-mix(in srgb, var(--accent) 24%, transparent);
  transition: transform 160ms ease, filter 160ms ease;
}

.primary-action:hover,
.device-grid button:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.device-grid {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.device-grid button {
  min-width: 150px;
  margin-top: 0;
  border-radius: 16px;
}

.feature-list {
  width: min(560px, 100%);
  margin-top: 34px;
  display: grid;
  gap: 14px;
  text-align: left;
}

.feature-list div,
.verification-box {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  padding: 18px 20px;
}

.feature-list div::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-right: 12px;
  border-radius: 999px;
  display: inline-block;
  background: var(--accent-2);
}

.text-action {
  margin-top: 20px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.verification-box {
  width: min(520px, 100%);
  margin: auto;
  padding: 30px;
}

.verification-box h3 {
  font-size: 24px;
}

.verification-box p {
  margin-top: 10px;
  font-size: 15px;
}

.verification-box .link-action {
  margin-top: 20px;
}

.verification-back {
  display: block;
  margin: 18px auto 0;
}

.phone-form {
  width: min(560px, 100%);
  margin-top: 30px;
  display: grid;
  gap: 16px;
  text-align: left;
}

.phone-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.phone-form select,
.phone-form input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  outline: none;
}

.phone-form select {
  padding: 0 14px;
}

.phone-form input {
  border: 0;
  background: transparent;
}

.phone-form select:focus,
.phone-form input:focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);
}

.phone-row {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.phone-row span {
  height: 100%;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  border-right: 1px solid var(--line);
  color: var(--accent-2);
  font-weight: 900;
}

.phone-row input {
  padding: 0 14px;
}

.phone-hint,
.phone-error {
  margin-top: 0 !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}

.phone-error {
  min-height: 18px;
  color: #f87171 !important;
  font-weight: 800;
}

.phone-form .primary-action {
  width: 100%;
  margin-top: 2px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .activation-app {
    width: min(100% - 24px, 520px);
  }

  .activation-nav {
    flex-direction: column;
    gap: 4px;
    min-height: 58px;
    padding: 10px 0;
  }

  .activation-step {
    justify-content: flex-start;
    padding: 34px 0 28px;
  }

  .app-icon {
    width: 82px;
    height: 82px;
    margin-bottom: 20px;
    border-radius: 18px;
  }

  .activation-step h1 {
    font-size: 43px;
  }

  .activation-step h2 {
    font-size: 34px;
  }

  .activation-step p {
    font-size: 16px;
  }

  .primary-action,
  .device-grid button {
    min-height: 50px;
    padding: 0 21px;
    font-size: 15px;
  }

  .device-grid {
    width: 100%;
    margin-top: 26px;
    gap: 10px;
  }

  .device-grid button {
    min-width: 0;
    flex: 1;
  }

  .feature-list {
    margin-top: 25px;
    gap: 10px;
  }

  .feature-list div {
    padding: 15px 14px;
    border-radius: 14px;
    font-size: 14px;
  }

  .verification-box {
    width: 100%;
    padding: 24px 17px;
  }

  .verification-box h3 {
    font-size: 23px;
  }

  .phone-form {
    margin-top: 24px;
    gap: 13px;
  }

  .phone-form select,
  .phone-form input,
  .phone-row {
    min-height: 48px;
    border-radius: 13px;
  }
}

@media (max-width: 390px) {
  .activation-step {
    padding-top: 25px;
  }

  .activation-step h1 {
    font-size: 38px;
  }

  .activation-step h2 {
    font-size: 30px;
  }

  .activation-step p {
    margin-top: 13px;
    font-size: 15px;
  }

  .primary-action {
    margin-top: 25px;
  }
}
