@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap");

:root {
  --color-dark-1: #141423;
  --color-dark-2: #1c1c32;
  --color-dark-3: #0e0e1b;
  --color-blue: #0094ff;
  --color-blue-dark: #086fb8;
  --color-purple: #7000ff;
  --color-white: #ffffff;
  --color-white-70: rgba(255, 255, 255, 0.7);
  --color-white-12: rgba(255, 255, 255, 0.12);
  --shadow-soft: 0 20px 50px rgba(0, 0, 0, 0.25);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Montserrat", sans-serif;
  color: var(--color-white);
  background:
    radial-gradient(circle at 10% 10%, rgba(0, 148, 255, 0.2), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(112, 0, 255, 0.16), transparent 35%),
    linear-gradient(180deg, var(--color-dark-1), var(--color-dark-2));
}

body.is-profile-loading {
  overflow: hidden;
}

.container {
  width: min(1120px, 100% - 40px);
  margin: 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.lock-scroll {
  overflow: hidden;
}

.site-header {
  padding: 24px 0 6px;
}

.top-proxy-banner {
  border-bottom: 1px solid rgba(0, 148, 255, 0.26);
  background:
    linear-gradient(180deg, rgba(0, 148, 255, 0.22), rgba(0, 148, 255, 0.08)),
    rgba(14, 14, 27, 0.92);
}

.top-proxy-banner__inner {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
}

.top-proxy-banner__link {
  color: var(--color-white);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.top-proxy-banner__link:hover {
  text-decoration: underline;
}

.top-bot-banner {
  border-bottom: 1px solid rgba(0, 148, 255, 0.32);
  background:
    linear-gradient(180deg, rgba(0, 148, 255, 0.16), rgba(0, 148, 255, 0.06)),
    rgba(14, 14, 27, 0.9);
}

.top-bot-banner__inner {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.top-bot-banner__link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 148, 255, 0.55);
  background: rgba(0, 148, 255, 0.18);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.top-bot-banner__link:hover {
  background: rgba(0, 148, 255, 0.26);
}

.top-bot-banner__text {
  margin: 0;
  color: var(--color-white-70);
  font-size: 14px;
  line-height: 1.45;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand__logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.brand__text {
  color: var(--color-white);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand__text span {
  color: var(--color-blue);
}

.cabinet {
  position: relative;
  overflow: hidden;
  padding: 36px 0 60px;
}

.cabinet::before {
  content: "";
  position: absolute;
  inset: auto auto 0 -80px;
  width: 220px;
  height: 220px;
  background: linear-gradient(135deg, rgba(0, 148, 255, 0.25), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.cabinet__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.cabinet__badge {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-blue);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cabinet__title {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.1;
}

.cabinet__subtitle {
  margin: 18px 0 30px;
  max-width: 60ch;
  color: var(--color-white-70);
  font-size: 16px;
  line-height: 1.55;
}

.account-card {
  width: 100%;
  padding: 24px;
  border: 1px solid var(--color-white-12);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    var(--color-dark-3);
  box-shadow: var(--shadow-soft);
}

.account-card__title {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 700;
}

.account-card__list {
  display: grid;
  gap: 14px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.account-card__item {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-white-12);
}

.account-card__label {
  font-size: 14px;
  color: var(--color-white-70);
}

.account-card__value {
  font-size: 18px;
  font-weight: 700;
}

.account-card__actions {
  display: grid;
  gap: 10px;
}

.account-card__button {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--color-blue), var(--color-blue-dark));
  color: var(--color-white);
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.account-card__button:hover {
  filter: brightness(1.07);
}

.account-card__button:active {
  transform: translateY(1px);
}

.account-card__button--secondary {
  border: 1px solid var(--color-white-12);
  background: rgba(255, 255, 255, 0.05);
}

.account-card__button--secondary:hover {
  background: rgba(0, 148, 255, 0.14);
  border-color: rgba(0, 148, 255, 0.42);
  filter: none;
}

.account-card__button--danger {
  border: 1px solid rgba(255, 88, 88, 0.45);
  background: rgba(255, 88, 88, 0.12);
  color: #ffd2d2;
}

.account-card__button--danger:hover {
  border-color: rgba(255, 88, 88, 0.62);
  background: rgba(255, 88, 88, 0.2);
  filter: none;
}

.account-card__button.is-loading {
  position: relative;
  padding-right: 40px;
}

.account-card__button.is-loading::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: var(--color-white);
  border-radius: 50%;
  animation: buttonSpin 0.8s linear infinite;
}

.cabinet__media {
  justify-self: end;
}

.cabinet__media img {
  width: min(460px, 100%);
  height: auto;
  filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.3));
}

.connection-create {
  padding: 0 0 84px;
  scroll-margin-top: 24px;
}

.connection-create__card {
  width: 100%;
  padding: 30px;
  border-radius: 22px;
  border: 1px solid var(--color-white-12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    var(--color-dark-3);
  box-shadow: var(--shadow-soft);
}

.connection-create__title {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.2;
}

.connection-create__subtitle {
  margin: 16px 0 24px;
  color: var(--color-white-70);
  line-height: 1.55;
}

.connection-create__card.is-attention {
  animation: cardPulse 0.7s ease-in-out 4;
}

@keyframes cardPulse {
  0% {
    box-shadow:
      var(--shadow-soft),
      0 0 0 0 rgba(0, 148, 255, 0.45);
    transform: translateY(0);
  }
  50% {
    box-shadow:
      var(--shadow-soft),
      0 0 0 10px rgba(0, 148, 255, 0.18);
    transform: translateY(-1px);
  }
  100% {
    box-shadow:
      var(--shadow-soft),
      0 0 0 0 rgba(0, 148, 255, 0);
    transform: translateY(0);
  }
}

.instructions {
  padding: 0 0 92px;
  scroll-margin-top: 24px;
}

.support {
  padding: 0 0 92px;
  scroll-margin-top: 24px;
}

.logout-block {
  padding: 0 0 92px;
}

.logout-block__container {
  display: flex;
  justify-content: center;
}

.logout-block__button {
  width: min(340px, 100%);
}

.agreement-footer {
  padding: 0 0 42px;
}

.agreement-footer__container {
  border-top: 1px solid var(--color-white-12);
  padding-top: 18px;
}

.agreement-footer__text {
  margin: 0;
  color: var(--color-white-70);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.agreement-footer__link {
  color: var(--color-blue);
  font-weight: 700;
  text-decoration: none;
}

.agreement-footer__link:hover {
  text-decoration: underline;
}

.support__card {
  border: 1px solid var(--color-white-12);
  border-radius: 22px;
  padding: 30px;
  background:
    radial-gradient(circle at 90% 0%, rgba(0, 148, 255, 0.14), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    var(--color-dark-3);
  box-shadow: var(--shadow-soft);
}

.support__title {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.2;
}

.support__subtitle {
  margin: 14px 0 22px;
  color: var(--color-white-70);
  line-height: 1.55;
}

.support__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.support__item {
  border: 1px solid var(--color-white-12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  padding: 14px;
  display: grid;
  gap: 6px;
}

.support__label {
  font-size: 14px;
  color: var(--color-white-70);
}

.support__link {
  color: var(--color-white);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  word-break: break-word;
}

.support__link:hover {
  color: #8bd0ff;
}

.support__note {
  margin: 2px 0 0;
  color: var(--color-white-70);
  font-size: 14px;
  line-height: 1.5;
}

.manage-keys__title {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.2;
}

.manage-keys__subtitle {
  margin: 14px 0 20px;
  color: var(--color-white-70);
  line-height: 1.55;
}

.manage-keys__empty {
  margin: 0;
  color: var(--color-white-70);
}

.manage-keys__list {
  display: grid;
  gap: 14px;
}

.key-item {
  border: 1px solid var(--color-white-12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  padding: 14px;
}

.key-item__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.key-item__meta {
  display: grid;
  gap: 4px;
}

.key-item__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.key-item__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.key-item__id {
  margin: 0;
  color: var(--color-white-70);
  font-size: 12px;
  word-break: break-all;
}

.key-item__copy {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--color-white-12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-white);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.key-item__delete {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 88, 88, 0.45);
  background: rgba(255, 88, 88, 0.12);
  color: #ffd2d2;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.key-item__copy:disabled,
.key-item__delete:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.key-item__value {
  width: 100%;
  min-height: 92px;
  border: 1px solid var(--color-white-12);
  border-radius: 10px;
  background: var(--color-dark-2);
  color: var(--color-white);
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  line-height: 1.4;
  padding: 10px;
  resize: vertical;
}

.key-item__status {
  margin: 10px 0 0;
  font-size: 13px;
  color: #ff9a9a;
}

.key-item__status[data-type="success"] {
  color: #8de8b7;
}

.instructions__card {
  border: 1px solid var(--color-white-12);
  border-radius: 22px;
  padding: 30px;
  background:
    radial-gradient(circle at 10% 0%, rgba(0, 148, 255, 0.16), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    var(--color-dark-3);
  box-shadow: var(--shadow-soft);
}

.instructions__title {
  margin: 0;
  font-size: clamp(24px, 2.7vw, 34px);
  line-height: 1.2;
}

.instructions__subtitle {
  margin: 14px 0 24px;
  max-width: 65ch;
  color: var(--color-white-70);
  line-height: 1.55;
}

.guide-progress {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.guide-progress__item {
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--color-white-12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-white-70);
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
}

.guide-progress__item.is-active {
  color: var(--color-white);
  border-color: rgba(0, 148, 255, 0.45);
  background: rgba(0, 148, 255, 0.18);
}

.guide-step[hidden] {
  display: none;
}

.guide-step__title {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.guide-step__text {
  margin: 12px 0 0;
  color: var(--color-white-70);
  line-height: 1.55;
}

.guide-step__actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
}

.guide-step__actions > * {
  flex: 1;
}

.guide-step__actions .modal__button-secondary {
  min-height: 52px;
}

.guide-choice-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.guide-choice-grid--devices {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.guide-choice-button {
  min-height: 54px;
  border: 1px solid var(--color-white-12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-white);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.guide-choice-button:hover {
  border-color: rgba(0, 148, 255, 0.45);
  background: rgba(0, 148, 255, 0.12);
}

.guide-choice-button.is-selected {
  border-color: rgba(0, 148, 255, 0.7);
  background: linear-gradient(180deg, rgba(0, 148, 255, 0.22), rgba(8, 111, 184, 0.24));
}

.guide-choice-button:active {
  transform: translateY(1px);
}

.guide-inline-link {
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-blue);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.guide-result {
  margin-top: 20px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(0, 148, 255, 0.35);
  background:
    linear-gradient(180deg, rgba(0, 148, 255, 0.12), rgba(0, 148, 255, 0.04)),
    var(--color-dark-2);
}

.guide-result__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}

.guide-result__list {
  margin: 12px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  line-height: 1.5;
}

.guide-result__link {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  color: var(--color-white);
  text-decoration: none;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 148, 255, 0.6);
  background: rgba(0, 148, 255, 0.14);
  font-weight: 700;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 22px;
}

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

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 9, 9, 0.82);
  backdrop-filter: blur(4px);
}

.auth-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  padding: 30px;
  border-radius: 22px;
  border: 1px solid var(--color-white-12);
  background:
    radial-gradient(circle at 80% 0%, rgba(0, 148, 255, 0.22), transparent 45%),
    var(--color-dark-1);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.42);
}

.auth-modal__title {
  margin: 0;
  font-size: clamp(25px, 2.8vw, 34px);
  line-height: 1.2;
}

.auth-modal__subtitle {
  margin: 14px 0 22px;
  color: var(--color-white-70);
  line-height: 1.5;
}

.auth-modal__notice {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 148, 255, 0.42);
  border-left: 4px solid rgba(0, 148, 255, 0.8);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(0, 148, 255, 0.16), rgba(0, 148, 255, 0.06)),
    rgba(14, 14, 27, 0.9);
  color: var(--color-white);
  font-size: 14px;
  line-height: 1.5;
}

.auth-modal__notice strong {
  color: #8bd0ff;
}

.auth-step[hidden] {
  display: none;
}

.auth-step__title {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.auth-step__text {
  margin: 10px 0 0;
  color: var(--color-white-70);
  line-height: 1.5;
}

.auth-step__text a {
  color: var(--color-blue);
  font-weight: 600;
  text-decoration: none;
}

.auth-modal__label {
  display: block;
  margin: 18px 0 8px;
  font-size: 14px;
  color: var(--color-white-70);
}

.auth-modal__input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--color-white-12);
  border-radius: 12px;
  background: var(--color-dark-2);
  color: var(--color-white);
  font: inherit;
  padding: 0 14px;
}

.auth-modal__input:focus-visible {
  outline: none;
  border-color: rgba(0, 148, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(0, 148, 255, 0.2);
}

.auth-pin {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}

.auth-pin__digit {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--color-white-12);
  border-radius: 12px;
  background: var(--color-dark-2);
  color: var(--color-white);
  text-align: center;
  font: inherit;
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 0;
}

.auth-pin__digit:focus-visible {
  outline: none;
  border-color: rgba(0, 148, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(0, 148, 255, 0.2);
}

.auth-modal__actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
}

.auth-modal__actions--column {
  flex-direction: column;
}

.auth-modal__actions--split > * {
  flex: 1;
}

.auth-modal__actions .modal__button-secondary,
.auth-modal__actions .account-card__button {
  width: auto;
}

.auth-modal__feedback {
  margin: 14px 0 0;
  border-radius: 12px;
  padding: 11px 12px;
  line-height: 1.45;
  border: 1px solid rgba(255, 88, 88, 0.42);
  background: rgba(255, 88, 88, 0.12);
}

.auth-modal__feedback[data-type="success"] {
  border-color: rgba(59, 194, 122, 0.45);
  background: rgba(59, 194, 122, 0.12);
}

.auth-modal__support-link {
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-blue);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.auth-modal__support-link:hover {
  color: #8bd0ff;
  text-decoration: underline;
}

.auth-modal__support-link:focus-visible {
  outline: none;
  color: #8bd0ff;
  text-decoration: underline;
}

.auth-modal button:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: grid;
  place-items: center;
  padding: 22px;
}

.page-loader[hidden] {
  display: none;
}

.page-loader__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 9, 9, 0.45);
  backdrop-filter: blur(8px);
}

.page-loader__content {
  position: relative;
  z-index: 1;
  min-width: min(420px, 100%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(0, 148, 255, 0.4);
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 148, 255, 0.2), transparent 50%),
    rgba(20, 20, 35, 0.9);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.4);
}

.page-loader__spinner {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--color-white);
  animation: buttonSpin 0.8s linear infinite;
}

.page-loader__text {
  margin: 0;
  line-height: 1.5;
  color: var(--color-white);
  font-size: 14px;
  font-weight: 600;
}

.modal.modal--auth-support {
  z-index: 1500;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 22px;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 9, 9, 0.72);
  backdrop-filter: blur(3px);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  border-radius: 22px;
  border: 1px solid var(--color-white-12);
  background:
    radial-gradient(circle at 85% 0%, rgba(0, 148, 255, 0.2), transparent 50%),
    var(--color-dark-1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  padding: 28px;
}

.modal__dialog--keys {
  width: min(940px, 100%);
  max-height: min(86vh, 860px);
  overflow-y: auto;
}

.modal__dialog--payment {
  width: min(560px, 100%);
}

.modal__dialog--auth-support {
  width: min(620px, 100%);
}

.modal__dialog--logout {
  width: min(520px, 100%);
}

.modal__dialog--keys .modal__actions .account-card__button {
  max-width: 220px;
  margin-left: auto;
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-white);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.modal__title {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.modal__note,
.modal__text {
  margin: 14px 0 0;
  color: var(--color-white-70);
  line-height: 1.5;
}

.modal__label {
  display: block;
  margin: 22px 0 8px;
  font-size: 14px;
  color: var(--color-white-70);
}

.custom-select {
  position: relative;
}

.custom-select.is-open {
  z-index: 4;
}

.custom-select__trigger,
.modal__key {
  width: 100%;
  border: 1px solid var(--color-white-12);
  border-radius: 12px;
  background-color: var(--color-dark-2);
  color: var(--color-white);
  font: inherit;
}

.custom-select__trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 44px 0 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-select__trigger:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.custom-select__trigger:focus-visible {
  outline: none;
  border-color: rgba(0, 148, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(0, 148, 255, 0.2);
}

.custom-select__value {
  color: var(--color-white);
}

.custom-select__value.is-placeholder {
  color: var(--color-white-70);
}

.custom-select__arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255, 255, 255, 0.8);
  border-bottom: 2px solid rgba(255, 255, 255, 0.8);
  transform: translateY(-60%) rotate(45deg);
  transition: transform 0.2s ease;
}

.custom-select.is-open .custom-select__arrow {
  transform: translateY(-25%) rotate(-135deg);
}

.custom-select__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(0, 148, 255, 0.35);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(20, 20, 35, 0.95), rgba(14, 14, 27, 0.96)),
    var(--color-dark-1);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  max-height: 260px;
  overflow-y: auto;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.custom-select.is-open .custom-select__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.custom-select__option {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--color-white);
  text-align: left;
  padding: 10px 12px;
  font: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.custom-select__option:hover {
  background: rgba(0, 148, 255, 0.16);
}

.custom-select__option.is-selected {
  background: rgba(0, 148, 255, 0.24);
  box-shadow: inset 0 0 0 1px rgba(0, 148, 255, 0.45);
}

.custom-select__option:focus-visible {
  outline: none;
  background: rgba(0, 148, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(0, 148, 255, 0.62);
}

.modal__key-group {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.modal__key {
  min-height: 120px;
  resize: vertical;
  padding: 12px;
  line-height: 1.4;
}

.modal__actions {
  margin-top: 24px;
  display: flex;
  gap: 10px;
}

.modal__actions .account-card__button {
  width: auto;
  flex: 1;
}

.modal__actions--split > * {
  flex: 1;
}

.modal__button-secondary,
.modal__button-link {
  min-height: 52px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
}

.modal__button-secondary {
  border: 1px solid var(--color-white-12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-white);
  cursor: pointer;
}

.modal__button-link {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-blue);
  color: var(--color-white);
  text-decoration: none;
  background: transparent;
}

.modal__feedback {
  margin-top: 14px;
  border-radius: 12px;
  padding: 10px 12px;
  line-height: 1.45;
  border: 1px solid rgba(255, 88, 88, 0.42);
  background: rgba(255, 88, 88, 0.12);
}

.modal__feedback[data-type="success"] {
  border-color: rgba(59, 194, 122, 0.45);
  background: rgba(59, 194, 122, 0.12);
}

.payment-modal__input {
  font-variant-numeric: tabular-nums;
}

.payment-hints {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.payment-hints__button {
  min-height: 42px;
  border: 1px solid var(--color-white-12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-white);
  font: inherit;
  font-size: 14px;
  text-align: left;
  padding: 0 12px;
  cursor: pointer;
}

.payment-hints__button:hover {
  border-color: rgba(0, 148, 255, 0.45);
  background: rgba(0, 148, 255, 0.12);
}

@media (min-width: 981px) {
  .account-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    column-gap: 24px;
    row-gap: 16px;
    align-items: start;
  }

  .account-card__title {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .account-card__list {
    margin: 0;
  }

  .account-card__actions {
    align-self: start;
  }
}

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

  .cabinet__media {
    order: -1;
    justify-self: center;
  }

  .cabinet__title {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1120px, 100% - 28px);
  }

  .cabinet__media {
    display: none;
  }

  .site-header {
    padding-top: 18px;
  }

  .top-bot-banner__inner {
    flex-direction: column;
    align-items: flex-start;
    min-height: unset;
    gap: 8px;
  }

  .top-proxy-banner__inner {
    min-height: 44px;
  }

  .top-proxy-banner__link {
    font-size: 14px;
    line-height: 1.35;
  }

  .top-bot-banner__link {
    white-space: normal;
  }

  .brand__logo {
    width: 36px;
    height: 36px;
  }

  .brand__text {
    font-size: 17px;
  }

  .cabinet {
    padding-top: 18px;
  }

  .connection-create {
    padding-bottom: 62px;
  }

  .connection-create__card {
    padding: 18px 16px;
    border-radius: 16px;
  }

  .connection-create__subtitle {
    margin-bottom: 18px;
    font-size: 15px;
  }

  .instructions {
    padding-bottom: 64px;
  }

  .support {
    padding-bottom: 64px;
  }

  .logout-block {
    padding-bottom: 64px;
  }

  .agreement-footer {
    padding-bottom: 28px;
  }

  .manage-keys__subtitle {
    margin-bottom: 14px;
    font-size: 15px;
  }

  .key-item {
    padding: 10px;
  }

  .key-item__top {
    flex-direction: column;
  }

  .key-item__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .key-item__copy,
  .key-item__delete {
    width: 100%;
  }

  .instructions__card {
    padding: 18px 16px;
    border-radius: 16px;
  }

  .support__card {
    padding: 18px 16px;
    border-radius: 16px;
  }

  .instructions__subtitle {
    margin-bottom: 18px;
    font-size: 15px;
  }

  .guide-step__title {
    font-size: 21px;
  }

  .guide-step__actions {
    flex-direction: column;
  }

  .guide-choice-grid,
  .guide-choice-grid--devices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-result {
    padding: 14px;
  }

  .guide-result__title {
    font-size: 18px;
  }

  .auth-modal {
    padding: 14px;
  }

  .auth-modal__dialog {
    padding: 18px 14px;
    border-radius: 16px;
  }

  .auth-step__title {
    font-size: 19px;
  }

  .auth-modal__notice {
    font-size: 13px;
    padding: 10px 12px;
  }

  .auth-modal__actions,
  .auth-modal__actions--split {
    flex-direction: column;
  }

  .auth-modal__actions .modal__button-secondary,
  .auth-modal__actions .account-card__button {
    width: 100%;
  }

  .page-loader__content {
    min-width: 0;
    width: 100%;
    border-radius: 14px;
    padding: 14px 12px;
  }

  .auth-pin {
    gap: 6px;
  }

  .auth-pin__digit {
    min-height: 44px;
    border-radius: 10px;
    font-size: 19px;
  }

  .cabinet__subtitle {
    margin-bottom: 22px;
    font-size: 15px;
  }

  .account-card {
    padding: 18px 16px;
    border-radius: 16px;
  }

  .account-card__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .account-card__value {
    font-size: 17px;
  }

  .payment-hints__button {
    font-size: 13px;
  }

  .modal {
    padding: 14px;
  }

  .modal__dialog {
    padding: 18px 14px;
    border-radius: 16px;
  }

  .modal__dialog--keys .modal__actions .account-card__button {
    max-width: none;
    margin-left: 0;
  }

  .modal__close {
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
  }

  .modal__title {
    font-size: 22px;
    padding-right: 40px;
  }

  .modal__actions,
  .modal__actions--split {
    flex-direction: column;
  }

  .modal__actions .account-card__button,
  .modal__button-secondary,
  .modal__button-link {
    width: 100%;
  }
}

@keyframes buttonSpin {
  to {
    transform: rotate(360deg);
  }
}
