@charset "UTF-8";
:root {
  --container: 450px;
  --fz: 14px;
  --ff: "Open Sans";
  --text: #fff;
  --text-secondary: #8e64ff;
  --dark: #170632;
  --medium: rgba(18, 7, 50, 0.8);
  --primary: #0b64f4;
  --secondary: #cf6e24;
  --accent-success: #00c154;
  --primary-dark: #140c2c;
  --secondary-dark: #120732;
  --btn-dark: #2a1a6b;
  --lightest: #8183ba;
  --error: #f16a6c;
  --success: #00ff8c;
  --border-gradient:
    linear-gradient(var(--secondary-dark), var(--secondary-dark)) padding-box,
    linear-gradient(to right, rgba(132, 156, 217, 0.5), rgba(40, 34, 162, 0.2)) border-box;
  --btn-gradient:
    linear-gradient(var(--btn-dark), var(--btn-dark)) padding-box,
    linear-gradient(to right, rgba(132, 156, 217, 0.5), rgba(40, 34, 162, 0.2)) border-box;
}

.mt-1 {
  margin-top: 1px;
}

.mb-1 {
  margin-bottom: 1px;
}

.ml-1 {
  margin-left: 1px;
}

.mr-1 {
  margin-right: 1px;
}

.mt-2 {
  margin-top: 2px;
}

.mb-2 {
  margin-bottom: 2px;
}

.ml-2 {
  margin-left: 2px;
}

.mr-2 {
  margin-right: 2px;
}

.mt-3 {
  margin-top: 3px;
}

.mb-3 {
  margin-bottom: 3px;
}

.ml-3 {
  margin-left: 3px;
}

.mr-3 {
  margin-right: 3px;
}

.mt-4 {
  margin-top: 4px;
}

.mb-4 {
  margin-bottom: 4px;
}

.ml-4 {
  margin-left: 4px;
}

.mr-4 {
  margin-right: 4px;
}

.mt-5 {
  margin-top: 5px;
}

.mb-5 {
  margin-bottom: 5px;
}

.ml-5 {
  margin-left: 5px;
}

.mr-5 {
  margin-right: 5px;
}

.mt-6 {
  margin-top: 6px;
}

.mb-6 {
  margin-bottom: 6px;
}

.ml-6 {
  margin-left: 6px;
}

.mr-6 {
  margin-right: 6px;
}

.mt-7 {
  margin-top: 7px;
}

.mb-7 {
  margin-bottom: 7px;
}

.ml-7 {
  margin-left: 7px;
}

.mr-7 {
  margin-right: 7px;
}

.mt-8 {
  margin-top: 8px;
}

.mb-8 {
  margin-bottom: 8px;
}

.ml-8 {
  margin-left: 8px;
}

.mr-8 {
  margin-right: 8px;
}

.mt-9 {
  margin-top: 9px;
}

.mb-9 {
  margin-bottom: 9px;
}

.ml-9 {
  margin-left: 9px;
}

.mr-9 {
  margin-right: 9px;
}

.mt-10 {
  margin-top: 10px;
}

.mb-10 {
  margin-bottom: 10px;
}

.ml-10 {
  margin-left: 10px;
}

.mr-10 {
  margin-right: 10px;
}

.mt-11 {
  margin-top: 11px;
}

.mb-11 {
  margin-bottom: 11px;
}

.ml-11 {
  margin-left: 11px;
}

.mr-11 {
  margin-right: 11px;
}

.mt-12 {
  margin-top: 12px;
}

.mb-12 {
  margin-bottom: 12px;
}

.ml-12 {
  margin-left: 12px;
}

.mr-12 {
  margin-right: 12px;
}

.mt-13 {
  margin-top: 13px;
}

.mb-13 {
  margin-bottom: 13px;
}

.ml-13 {
  margin-left: 13px;
}

.mr-13 {
  margin-right: 13px;
}

.mt-14 {
  margin-top: 14px;
}

.mb-14 {
  margin-bottom: 14px;
}

.ml-14 {
  margin-left: 14px;
}

.mr-14 {
  margin-right: 14px;
}

.mt-15 {
  margin-top: 15px;
}

.mb-15 {
  margin-bottom: 15px;
}

.ml-15 {
  margin-left: 15px;
}

.mr-15 {
  margin-right: 15px;
}

.mt-16 {
  margin-top: 16px;
}

.mb-16 {
  margin-bottom: 16px;
}

.ml-16 {
  margin-left: 16px;
}

.mr-16 {
  margin-right: 16px;
}

.mt-17 {
  margin-top: 17px;
}

.mb-17 {
  margin-bottom: 17px;
}

.ml-17 {
  margin-left: 17px;
}

.mr-17 {
  margin-right: 17px;
}

.mt-18 {
  margin-top: 18px;
}

.mb-18 {
  margin-bottom: 18px;
}

.ml-18 {
  margin-left: 18px;
}

.mr-18 {
  margin-right: 18px;
}

.mt-19 {
  margin-top: 19px;
}

.mb-19 {
  margin-bottom: 19px;
}

.ml-19 {
  margin-left: 19px;
}

.mr-19 {
  margin-right: 19px;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

.ml-20 {
  margin-left: 20px;
}

.mr-20 {
  margin-right: 20px;
}

.mt-21 {
  margin-top: 21px;
}

.mb-21 {
  margin-bottom: 21px;
}

.ml-21 {
  margin-left: 21px;
}

.mr-21 {
  margin-right: 21px;
}

.mt-22 {
  margin-top: 22px;
}

.mb-22 {
  margin-bottom: 22px;
}

.ml-22 {
  margin-left: 22px;
}

.mr-22 {
  margin-right: 22px;
}

.mt-23 {
  margin-top: 23px;
}

.mb-23 {
  margin-bottom: 23px;
}

.ml-23 {
  margin-left: 23px;
}

.mr-23 {
  margin-right: 23px;
}

.mt-24 {
  margin-top: 24px;
}

.mb-24 {
  margin-bottom: 24px;
}

.ml-24 {
  margin-left: 24px;
}

.mr-24 {
  margin-right: 24px;
}

.mt-25 {
  margin-top: 25px;
}

.mb-25 {
  margin-bottom: 25px;
}

.ml-25 {
  margin-left: 25px;
}

.mr-25 {
  margin-right: 25px;
}

.mt-26 {
  margin-top: 26px;
}

.mb-26 {
  margin-bottom: 26px;
}

.ml-26 {
  margin-left: 26px;
}

.mr-26 {
  margin-right: 26px;
}

.mt-27 {
  margin-top: 27px;
}

.mb-27 {
  margin-bottom: 27px;
}

.ml-27 {
  margin-left: 27px;
}

.mr-27 {
  margin-right: 27px;
}

.mt-28 {
  margin-top: 28px;
}

.mb-28 {
  margin-bottom: 28px;
}

.ml-28 {
  margin-left: 28px;
}

.mr-28 {
  margin-right: 28px;
}

.mt-29 {
  margin-top: 29px;
}

.mb-29 {
  margin-bottom: 29px;
}

.ml-29 {
  margin-left: 29px;
}

.mr-29 {
  margin-right: 29px;
}

.mt-30 {
  margin-top: 30px;
}

.mb-30 {
  margin-bottom: 30px;
}

.ml-30 {
  margin-left: 30px;
}

.mr-30 {
  margin-right: 30px;
}

.mt-31 {
  margin-top: 31px;
}

.mb-31 {
  margin-bottom: 31px;
}

.ml-31 {
  margin-left: 31px;
}

.mr-31 {
  margin-right: 31px;
}

.mt-32 {
  margin-top: 32px;
}

.mb-32 {
  margin-bottom: 32px;
}

.ml-32 {
  margin-left: 32px;
}

.mr-32 {
  margin-right: 32px;
}

.mt-33 {
  margin-top: 33px;
}

.mb-33 {
  margin-bottom: 33px;
}

.ml-33 {
  margin-left: 33px;
}

.mr-33 {
  margin-right: 33px;
}

.mt-34 {
  margin-top: 34px;
}

.mb-34 {
  margin-bottom: 34px;
}

.ml-34 {
  margin-left: 34px;
}

.mr-34 {
  margin-right: 34px;
}

.mt-35 {
  margin-top: 35px;
}

.mb-35 {
  margin-bottom: 35px;
}

.ml-35 {
  margin-left: 35px;
}

.mr-35 {
  margin-right: 35px;
}

.mt-36 {
  margin-top: 36px;
}

.mb-36 {
  margin-bottom: 36px;
}

.ml-36 {
  margin-left: 36px;
}

.mr-36 {
  margin-right: 36px;
}

.mt-37 {
  margin-top: 37px;
}

.mb-37 {
  margin-bottom: 37px;
}

.ml-37 {
  margin-left: 37px;
}

.mr-37 {
  margin-right: 37px;
}

.mt-38 {
  margin-top: 38px;
}

.mb-38 {
  margin-bottom: 38px;
}

.ml-38 {
  margin-left: 38px;
}

.mr-38 {
  margin-right: 38px;
}

.mt-39 {
  margin-top: 39px;
}

.mb-39 {
  margin-bottom: 39px;
}

.ml-39 {
  margin-left: 39px;
}

.mr-39 {
  margin-right: 39px;
}

.mt-40 {
  margin-top: 40px;
}

.mb-40 {
  margin-bottom: 40px;
}

.ml-40 {
  margin-left: 40px;
}

.mr-40 {
  margin-right: 40px;
}

.mt-0 {
  margin-top: 0 !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

/*RESET*/
*:where(:not(html, iframe, canvas, img, svg, video, audio):not(svg *, symbol *)) {
  all: unset;
  display: revert;
}

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

/* Reapply the pointer cursor for anchor tags */
a,
button {
  cursor: revert;
}

/* Remove list styles (bullets/numbers) */
ol,
ul,
menu {
  list-style: none;
}

/* For images to not be able to exceed their container */
img {
  /**/
  display: inline-block;
  max-width: 100%;
  /**/
  max-inline-size: 100%;
  max-block-size: 100%;
}

/* removes spacing between cells in tables */
table {
  border-collapse: collapse;
}

/* Safari - solving issue when using user-select:none on the <body> text input doesn't working */
input,
textarea {
  -webkit-user-select: auto;
}

/* revert the 'white-space' property for textarea elements on Safari */
textarea {
  white-space: revert;
}

/* minimum style to allow to style meter element */
meter {
  -webkit-appearance: revert;
  appearance: revert;
}

/* preformatted text - use only for this feature */
:where(pre) {
  all: revert;
}

/* reset default text opacity of input placeholder */
::placeholder {
  color: unset;
}

/* remove default dot (•) sign */
::marker {
  content: initial;
}

/* fix the feature of 'hidden' attribute.
   display:revert; revert to element instead of attribute */
:where([hidden]) {
  display: none;
}

/* revert for bug in Chromium browsers
   - fix for the content editable attribute will work properly.
   - webkit-user-select: auto; added for Safari in case of using user-select:none on wrapper element*/
:where([contenteditable]:not([contenteditable=false])) {
  -moz-user-modify: read-write;
  -webkit-user-modify: read-write;
  overflow-wrap: break-word;
  -webkit-line-break: after-white-space;
  -webkit-user-select: auto;
}

/* apply back the draggable feature - exist only in Chromium and Safari */
:where([draggable=true]) {
  -webkit-user-drag: element;
}

/* Revert Modal native behavior */
:where(dialog:modal) {
  all: revert;
}

/**/
body {
  overflow: auto;
  overflow-x: hidden;
  word-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: subpixel-antialiased !important;
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -ms-backface-visibility: hidden;
  -ms-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-overflow-scrolling: touch;
  -ms-touch-action: manipulation;
  touch-action: manipulation;
}

/**/
*::-webkit-media-controls-panel {
  display: none !important;
  -webkit-appearance: none;
}

/* Old shadow dom for play button */
*::-webkit-media-controls-play-button {
  display: none !important;
  -webkit-appearance: none;
}

/* New shadow dom for play button */
/* This one works! */
*::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

@font-face {
  font-family: "Open Sans";
  src: url("../fonts/OpenSans-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Italic-VariableFont_opsz,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
html {
  font-family: var(--ff);
  color: var(--text);
  font-size: var(--fz);
  min-height: 1px;
  height: 100vh;
  height: 100dvh;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 1px;
  min-height: 100%;
  height: 100%;
  background: var(--dark);
  background-image: radial-gradient(368.4% 188.34% at -215.87% -44.05%, rgba(47, 47, 255, 0.35) 0%, rgba(28, 78, 153, 0) 100%);
  overflow-x: hidden;
}

.wrapper {
  position: relative;
  min-width: 320px;
  width: 100%;
  max-width: var(--container);
  min-height: 1px;
  height: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.container {
  padding: 0 1.5em;
}
.container.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.85em;
}
@media (max-width: 360px) {
  .container {
    padding: 0 1.2em;
  }
}

.content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.home-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding-bottom: 2em;
  z-index: 2;
}
.home-footer .container {
  max-width: var(--container);
  margin: 0 auto;
}

main {
  position: relative;
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  scrollbar-width: none;
  z-index: 1;
}

section + section {
  margin-top: 1em;
}

.page {
  padding: 1.8em 0 6em 0;
  margin-bottom: 3em;
}

/* Регистрация по приглашению: без нижней панели (layout как auth) */
body.page-invitation-signup .page {
  padding-bottom: 1.8em;
  margin-bottom: 0;
}

a {
  display: inline-block;
  text-decoration: underline;
}

img {
  display: inline-block;
}

p + p {
  margin-top: 1em;
}

strong,
b {
  font-weight: 700;
}

/**/
*::-webkit-media-controls-panel {
  display: none !important;
  -webkit-appearance: none;
}

/* Old shadow dom for play button */
*::-webkit-media-controls-play-button {
  display: none !important;
  -webkit-appearance: none;
}

/* New shadow dom for play button */
/* This one works! */
*::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

/*Helper*/
.autoWidth {
  width: auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
}
.row.end {
  justify-content: flex-end;
}
.row.start {
  justify-content: flex-start;
}
.row.center {
  justify-content: center;
}
.row.space-between {
  justify-content: space-between;
}

.page-text,
.card__text,
.page-subtitle,
.auth-subtitle {
  color: var(--lightest);
}

.errorText {
  color: var(--error);
}

.successText {
  color: var(--success);
}

.centeredText {
  text-align: center;
}

header {
  position: relative;
  background-color: var(--primary-dark);
  z-index: 100;
}
header .container {
  position: relative;
  padding: 8px 1.5em;
  background: inherit;
  z-index: 2;
}
@media (max-width: 360px) {
  header .container {
    padding: 8px 1.2em;
  }
}

.logo {
  margin-right: auto;
}

.overlay {
  position: fixed;
  transform: translateX(-100%);
  inset: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 70px 1em 1em 1em;
  z-index: 1;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: visibility 0.4s cubic-bezier(0.45, 0.05, 0.55, 0.95), opacity 0.2s ease-out;
}
.overlay:after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(34, 34, 34, 0.5);
  backdrop-filter: blur(40px);
}
.overlay.open {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.main-menu {
  position: relative;
  width: 100%;
  max-width: 290px;
  margin: 0 auto;
  text-align: center;
  z-index: 1;
}

.main-menu__list {
  margin-bottom: 2em;
}
.main-menu__list li + li {
  margin-top: 0.9em;
}

.home-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 0.8em;
  border: 1px solid transparent;
  border-radius: 1em;
  background: linear-gradient(to top, rgba(12, 0, 48, 0.6), rgba(12, 0, 48, 0.6)) padding-box;
  backdrop-filter: blur(4px);
  box-shadow: 0px 0px 0px 1px rgba(129, 131, 186, 0.4);
}

.home-nav__btn {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5em;
  border-radius: 0.8em;
  color: var(--lightest);
  font-size: 0.8em;
  text-decoration: none;
}
.home-nav__btn.active {
  color: var(--text-secondary);
  background: #2a106f;
}

@media (max-width: 330px) {
  .home-nav__label {
    display: none;
  }
}

.page-title,
.auth-title,
.auth-modal__title {
  margin-bottom: 0.15em;
  font-size: 1.45em;
  font-weight: 600;
  color: var(--text);
}

.page-subtitle,
.auth-subtitle {
  margin-bottom: 1.85em;
}

/* Home */
.card {
  padding: 1.4em;
  border: 1px solid transparent;
  background: var(--border-gradient);
  border-radius: 1.1em;
  font-size: 0.9em;
}

/* Card-overlay-link pattern: вся карточка кликабельная как ссылка, кнопки
   внутри сохраняют свои клики (через z-index). Используется на /home для
   карточек access (active state) и profile. См. wiki services/webapp/css-patterns */
.card--clickable {
  position: relative;
  cursor: pointer;
}
.card--clickable .card__overlay-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.card--clickable .card__arrow {
  position: absolute;
  top: 0.9em;
  right: 1em;
  font-size: 1.2em;
  color: var(--lightest);
  pointer-events: none;
  z-index: 1;
}
.card--clickable .btn,
.card--clickable a:not(.card__overlay-link),
.card--clickable button {
  position: relative;
  z-index: 2;
}

.card--urgent {
  background: linear-gradient(135deg, #7d1c20 0%, #571215 100%);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.card--urgent .card__title,
.card--urgent .card__text,
.card--urgent .card__subtitle,
.card--urgent b {
  color: #fff;
}
.card--urgent .btn--primary {
  background: #fff;
  color: #1a0a0c;
  border-color: rgba(0, 0, 0, 0.05);
}
.card--urgent .btn--primary:hover {
  background: #f1eef0;
}

.card__title,
.card__username {
  font-size: 1.26em;
  font-weight: 500;
  margin-bottom: 0.3em;
}

.card__subtitle {
  font-weight: 400;
  margin-bottom: 0.5em;
  color: var(--lightest);
}

.card__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0.65em;
}
.card__row + .card__row {
  margin-top: 0.25em;
}

.card__label {
  color: var(--lightest);
}

.card__value {
  font-weight: 500;
}
.card__value.empty {
  color: var(--error);
}

.card__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0.65em;
}

.card__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.65em;
}

.setup-access-qr-wrap {
  text-align: center;
}

.setup-access-or {
  text-align: center;
  margin-bottom: 0;
  font-size: 1.42em;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.12em;
  color: var(--text);
}

.setup-access-qr {
  display: block;
  margin: 0.75em auto 0;
  max-width: 100%;
  height: auto;
  border-radius: 0.5em;
  background: #fff;
  padding: 0.35em;
}

/* Страница продления: вкладки тарифов колонкой, как в макете */
body.renewal-page .renewal-tariff-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.65em;
}
body.renewal-page .renewal-tariff-tabs .btn {
  margin-top: 0;
}
body.renewal-page .renewal-muted {
  color: var(--lightest);
  font-size: 0.92em;
}
body.renewal-page .renewal-warn {
  color: var(--error);
}
body.renewal-page .renewal-email-error {
  color: var(--error);
  margin-bottom: 0.75em;
}

textarea {
  display: block;
  width: 100%;
  height: 130px;
  padding: 1em 1.5em;
  border-radius: 1.2em;
  background: #1d0d4a;
  font-size: 0.9em;
  color: var(--lightest);
  font-style: oblique;
  resize: none;
  scrollbar-width: none;
}
textarea::placeholder {
  color: var(--lightest);
  font-style: oblique;
  opacity: 0.8;
}

.card textarea {
  background: transparent;
  border: none;
}

.auth-form .btn {
  margin-top: 1.2em;
}
.auth-form + .auth-tg-wrap {
  margin-top: 2em;
}

.auth-label {
  display: block;
  color: var(--lightest);
  font-size: 12px;
  margin-bottom: 6px;
}

.auth-input,
.single-input {
  display: block;
  width: 100%;
  padding: 1em 1.5em;
  border-radius: 1.2em;
}
.auth-input::placeholder,
.single-input::placeholder {
  color: var(--lightest);
  font-style: oblique;
  opacity: 0.8;
}

.auth-input {
  background: linear-gradient(var(--secondary-dark), var(--secondary-dark)) padding-box, linear-gradient(to right, #849cd9, rgba(40, 34, 162, 0.2)) border-box;
  border: 1px solid transparent;
}

.single-input {
  background: rgba(13, 6, 34, 0.6980392157);
}

.auth-form__group + .auth-form__group {
  margin-top: 0.8em;
}

.auth-success,
.auth-error {
  margin-top: 1em;
  font-size: 12px;
}

.auth-error {
  color: var(--error);
}

.auth-success {
  color: var(--success);
}

.input-wrapper {
  position: relative;
}
.input-wrapper .auth-input {
  padding-right: 90px;
}
.input-wrapper .btn {
  min-width: 90px;
  margin-top: 0;
  position: absolute;
  right: 0;
  top: 0;
  line-height: 1;
  font-size: 12px;
  font-style: oblique;
  cursor: pointer;
}

.input-wrapper {
  position: relative;
  isolation: isolate;
}
.input-wrapper textarea,
.input-wrapper .textarea {
  position: relative;
  z-index: 0;
}
.input-wrapper .curtain {
  position: absolute;
  inset: 0;
  border-radius: 1.2em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  /* Непрозрачный слой: без backdrop-filter ключ всё равно скрыт (Android WebView и т.п.) */
  background: rgba(13, 6, 34, 0.97);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-style: oblique;
  color: var(--lightest);
  transition: opacity 0.3s ease-in-out;
  z-index: 2;
  cursor: pointer;
}
.input-wrapper .curtain.isHide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Пока занавес виден — размываем сам текст (обход слоя формы поверх overlay в части WebKit) */
.input-wrapper:has(> .curtain:not(.isHide)) textarea,
.input-wrapper:has(> .curtain:not(.isHide)) .textarea {
  filter: blur(12px);
  -webkit-filter: blur(12px);
}

.btn {
  display: block;
  min-width: 115px;
  width: 100%;
  padding: 1.4em 1em;
  border: 1px solid rgba(129, 131, 186, 0.6);
  border-radius: 0.7em;
  font-size: 0.95em;
  font-weight: 600;
  text-align: center;
  line-height: 1;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
}
.btn + .btn {
  margin-top: 10px;
}
.btn--clean {
  width: auto;
  text-decoration: underline;
  color: var(--lightest);
  font-weight: 400;
  border: none;
}
.btn--primary {
  background-color: var(--primary);
}
.btn--secondary {
  background-color: var(--secondary);
}
.btn--success {
  background-color: var(--accent-success);
}
.btn--attention {
  background-color: var(--error);
}
.btn--outline {
  border: 1px solid transparent;
  background: var(--btn-gradient);
}
.btn.autoWidth {
  width: auto;
  margin-top: 0;
}
.btn-border {
  position: relative;
  padding: 0.8em 1em;
  border-radius: 0.8em;
  border: 1px solid transparent;
  background: var(--btn-gradient);
  text-transform: uppercase;
  font-size: 0.8em;
  font-weight: 600;
  overflow: hidden;
  z-index: 1;
  text-decoration: none;
}

@keyframes rotate {
  100% {
    transform: translate(-50%, -50%) rotate(1turn);
  }
}
.row {
  gap: 0.4em;
}
.row .btn.primary {
  flex: 1 1 auto;
}
.row .btn.autoWidth {
  width: auto;
  margin-top: 0;
}
.row .btn.halfWidth {
  flex: 0 1 calc(50% - 0.25em);
  margin-top: 0;
}
.row .btn.thirdWidth {
  flex: 0 1 calc(33.33% - 0.5em);
  min-width: 90px;
  margin-top: 0;
}

/**/
.menu-trigger {
  position: relative;
  width: 40px;
  height: 28px;
  padding: 13px 10px;
  background-clip: content-box;
  background-color: #fff;
  text-indent: -1000px;
  overflow: hidden;
  transition: 0.5s ease-in-out;
  cursor: pointer;
}
.menu-trigger:before, .menu-trigger:after {
  content: "";
  position: absolute;
  top: calc(50% - 1px);
  left: 10px;
  right: 10px;
  height: 2px;
  background-color: #fff;
  transform-origin: center center;
  transition: 0.5s ease-in-out;
}
.menu-trigger:before {
  transform: translateY(-6px);
}
.menu-trigger:after {
  transform: translateY(6px);
}
.menu-trigger.open {
  background-color: transparent;
}
.menu-trigger.open:before {
  transform: translateY(0) rotate(45deg);
}
.menu-trigger.open:after {
  transform: translateY(0) rotate(-45deg);
}

.js-widget-btn {
  width: calc(100% - 2em);
  margin: 0 auto;
}
.js-widget-btn.hide {
  transform: scaley(0);
  display: block;
  max-height: 0;
  padding: 0;
  opacity: 0;
}

.js-payment-btn.active, .js-payment-btn:hover,
.js-tariff.active,
.js-tariff:hover,
.js-renewal-tariff-tab.active,
.js-renewal-tariff-tab:hover {
  background: var(--primary);
}

/* Modal "Забыли пароль?" - visibility вместо display, чтобы виджет Telegram рендерился */
.auth-modal-overlay {
  display: flex;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: visibility 0.2s, opacity 0.2s;
}

.auth-modal-overlay.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.auth-modal {
  position: relative;
  max-width: 400px;
  width: 100%;
  padding: 24px;
  margin: auto;
  max-height: 85vh;
  border: 1px solid transparent;
  border-radius: 1.5em;
  background: var(--border-gradient);
  overflow-y: auto;
  scrollbar-width: none;
}
.auth-modal p {
  color: var(--lightest);
}
.auth-modal a:not(.btn) {
  color: var(--primary);
}
.auth-modal .auth-form {
  margin-top: 1em;
}

.auth-tg-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 20px 0;
  box-sizing: border-box;
}

.auth-modal__section + .auth-modal__section {
  margin-top: 1.5em;
}
.auth-modal__section .auth-tg-wrap {
  margin-top: 1em;
  padding-top: 0.5em;
  padding-bottom: 0;
}

.auth-modal__subtitle {
  font-size: 1.2em;
  font-weight: 600;
  color: var(--text);
}

.close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  opacity: 0.8;
}

.auth-tg-fallback {
  display: none;
  padding: 1em;
  border: 1px dashed var(--lightest);
  border-radius: 0.8em;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
}
.auth-tg-fallback .btn {
  margin-top: 1em;
}

.auth-tg-widget {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}
.auth-tg-widget iframe {
  width: 100%;
}
.auth-tg-widget.show {
  opacity: 1;
  max-height: 250px;
}

.auth-links {
  margin-top: 2em;
  color: var(--lightest);
  text-align: center;
}
.auth-links li + li {
  margin-top: 1em;
}

.avatar {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 100%;
  font-size: 1.2em;
  font-weight: 600;
  text-align: center;
  line-height: 40px;
  background-color: #1d0d4a;
}

/*Spinner*/
.spinner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  width: 90px;
  height: 40px;
  margin: 0 auto;
  position: relative;
}
.spinner span {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: #d9d9d9;
  animation: moveit 1.8s ease-in-out infinite;
}
.spinner span:nth-child(1) {
  animation-delay: 0s;
}
.spinner span:nth-child(2) {
  animation-delay: 0.2s;
}
.spinner span:nth-child(3) {
  animation-delay: 0.4s;
}
.spinner span:nth-child(4) {
  animation-delay: 0.6s;
}
.spinner span:nth-child(5) {
  animation-delay: 0.8s;
}
.spinner span:nth-child(6) {
  animation-delay: 1s;
}

@keyframes moveit {
  0% {
    opacity: 0.1;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.1;
  }
}

body.renewal-page .renewal-tariff-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.65em;
}
body.renewal-page .renewal-tariff-tabs .btn {
  margin-top: 0;
}
body.renewal-page .renewal-muted {
  color: var(--lightest);
  font-size: 0.92em;
}
body.renewal-page .renewal-warn {
  color: var(--error);
}
body.renewal-page .renewal-email-error {
  color: var(--error);
  margin-bottom: 0.75em;
}
body.renewal-page .renewal-email-gate .page-subtitle {
  margin-top: 0.35em;
  margin-bottom: 0.15em;
  line-height: 1.45;
  color: var(--lightest);
}
body.renewal-page .renewal-email-gate .auth-form .btn.btn--primary {
  width: 100%;
}

/* Статус-сообщение (копирование ключа и т.п.) */
.app-toast {
  position: fixed;
  left: 50%;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  transform: translate3d(-50%, calc(100% + 2rem), 0);
  max-width: min(90vw, 22rem);
  padding: 0.75rem 1.15rem;
  border: 1px solid var(--accent-success);
  border-radius: 12px;
  background: var(--medium);
  color: var(--text);
  font-size: var(--fz);
  font-family: var(--ff), system-ui, sans-serif;
  text-align: center;
  line-height: 1.35;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  opacity: 0;
  z-index: 10000;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.app-toast.app-toast--visible {
  transform: translate3d(-50%, 0, 0);
  opacity: 1;
}

/* Аккордеон шагов (/refresh-key) */
.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.step-header .card__title {
  margin: 0;
  flex: 1;
  min-width: 0;
}
.step-body {
  overflow: hidden;
  max-height: 2000px;
  transition: max-height 0.4s ease-out;
}
.step-body.collapsed {
  max-height: 0;
}
.step-edit-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0;
  min-width: 0;
  width: auto;
  font-size: 0.85em;
  color: var(--lightest);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 400;
  line-height: 1;
}

/* Setup progress bar */
.setup-progress {
  margin: 0 0 8px;
}
.setup-progress__label {
  text-align: center;
  color: var(--lightest);
  font-size: 12px;
  margin-bottom: 6px;
}
.setup-progress__track {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}
.setup-progress__fill {
  height: 100%;
  width: 0%;
  background: var(--accent-success);
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* Celebration particles */
@keyframes celebrate-float {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-90px) scale(0.4); opacity: 0; }
}
.celebrate-particle {
  position: fixed;
  font-size: 22px;
  line-height: 1;
  animation: celebrate-float 1.1s ease-out forwards;
  pointer-events: none;
  z-index: 9999;
}

/*# sourceMappingURL=main.css.map */
