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

body {
  font-family: "Inter", "Segoe UI", sans-serif;
  background: #0b0d12;
  color: #f2f4f8;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: #111520;
  border-bottom: 1px solid #202634;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #2b3345;
  background: transparent;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.burger span {
  width: 18px;
  height: 2px;
  background: #cdd6e3;
  border-radius: 999px;
  display: block;
}

.nav.open {
  display: flex;
}

.brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-btn {
  background: transparent;
  border: 1px solid #2b3345;
  color: #cdd6e3;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
}

.nav-btn.active {
  background: #2d6cff;
  border-color: #2d6cff;
  color: #fff;
}

.nav-exit {
  border-color: #3c465f;
  color: #ff9aa5;
}

.content {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 32px 20px 60px;
}

.view {
  width: 100%;
  max-width: 520px;
  background: #121823;
  border-radius: 20px;
  padding: 32px;
  border: 1px solid #1c2332;
  display: none;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.view.active {
  display: block;
}

h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.subtitle {
  color: #8e9bb4;
  margin-bottom: 24px;
  font-size: 15px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.field input {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #2a3347;
  background: #0c111a;
  color: #fff;
  padding: 0 14px;
  font-size: 16px;
  box-sizing: border-box;
}

.password-wrapper {
  position: relative;
  width: 100%;
  display: block;
}

.password-wrapper input {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #8e9bb4;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
  z-index: 10;
}

.password-toggle:hover {
  color: #cdd6e3;
}

.field-agreement {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.field-agreement input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

.field-agreement .agreement-text {
  font-size: 14px;
  color: #8e9bb4;
  line-height: 1.45;
}

.field-agreement .agreement-text a {
  color: #fff;
  text-decoration: underline;
}

.field-agreement .agreement-text a:hover {
  color: #e0e6ed;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

#view-forgot .actions {
  margin-top: 8px;
}

.captcha-block {
  display: flex;
  justify-content: center;
}

.captcha-host {
  width: min(320px, 100%);
  min-height: 100px;
  border-radius: 12px;
  overflow: hidden;
}

.btn {
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
}

.btn.primary {
  background: #2d6cff;
  color: #fff;
}

.btn.ghost {
  background: transparent;
  border-color: #2a3347;
  color: #cdd6e3;
}

.btn.danger-ghost {
  background: transparent;
  border-color: #6b2020;
  color: #f07070;
}

.btn.danger {
  background: #3d1515;
  border-color: #6b2020;
  color: #f07070;
}

.social-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
  color: #8e9bb4;
  font-size: 14px;
}

.social-divider::before,
.social-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #2a3347;
}

.yandex-auth-wrap {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yandex-auth-wrap iframe {
  max-width: 100%;
}

.hint {
  font-size: 14px;
  color: #8e9bb4;
}

.link {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0;
  font-size: 14px;
}

.status {
  min-height: 20px;
  font-size: 14px;
  color: #ff9aa5;
}

.status.success {
  color: #77e3a6;
}

.account-card {
  border-radius: 16px;
  border: 1px solid #243046;
  background: #0e141f;
  padding: 20px;
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.trial-row {
  display: none;
}

.trial-row.active {
  display: flex;
}

.plans {
  display: grid;
  gap: 16px;
}

.plans.hidden {
  display: none;
}

.account-actions {
  margin-top: 16px;
  display: none;
  justify-content: flex-end;
}

.account-actions.active {
  display: flex;
}

.account-danger {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
}

.plan-card {
  border-radius: 18px;
  border: 1px solid #283248;
  background: linear-gradient(160deg, #0d141f 0%, #131b2c 100%);
  padding: 20px;
  display: grid;
  gap: 16px;
}

.plan-highlight {
  border-color: #2d6cff;
  box-shadow: 0 16px 30px rgba(45, 108, 255, 0.2);
}

.plan-badge {
  align-self: start;
  background: rgba(45, 108, 255, 0.2);
  color: #a9c4ff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
}

.plan-header {
  display: grid;
  gap: 6px;
}

.plan-title {
  font-size: 18px;
  font-weight: 700;
}

.plan-price {
  font-size: 20px;
  font-weight: 700;
  color: #7aa2ff;
}

.plan-features {
  list-style: none;
  display: grid;
  gap: 8px;
  color: #c3cada;
  font-size: 14px;
}

.plan-features li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.plan-features li::before {
  content: "•";
  color: #7aa2ff;
}

.plan-cta {
  height: 46px;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 16, 0.7);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  width: min(420px, calc(100% - 32px));
  background: #121823;
  border-radius: 18px;
  border: 1px solid #243046;
  padding: 20px;
  display: grid;
  gap: 16px;
  z-index: 1;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close {
  background: transparent;
  border: none;
  color: #cdd6e3;
  font-size: 22px;
  cursor: pointer;
}

.modal-body {
  display: grid;
  gap: 12px;
}

.modal-plan {
  font-weight: 700;
  font-size: 16px;
}

.modal-text {
  color: #8e9bb4;
  font-size: 14px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer {
  margin-top: 40px;
  padding: 20px 0 10px;
  text-align: center;
  color: #8e9bb4;
  font-size: 14px;
}

.footer a {
  color: #fff;
  text-decoration: none;
}

.account-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.account-row .label {
  color: #8e9bb4;
  font-size: 14px;
}

.account-row .value {
  font-weight: 600;
  font-size: 15px;
}

.step {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.step.active {
  display: flex;
}

@media (max-width: 720px) {
  .header {
    padding: 16px 20px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .burger {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 64px;
    right: 16px;
    background: #111520;
    border: 1px solid #202634;
    border-radius: 16px;
    padding: 12px;
    flex-direction: column;
    gap: 10px;
    width: 220px;
    display: none;
    z-index: 10;
  }

  .content {
    padding: 20px 16px 40px;
  }

  .view {
    padding: 24px;
  }

  .actions {
    flex-direction: column;
  }

  .btn,
  .nav-btn {
    width: 100%;
  }

  .account-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
