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

html {
  font-size: 15.66px;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 15.66px;
  background-color: #0f1115;
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

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

.page--center {
  align-items: center;
}

.page__content {
  width: 100%;
  max-width: 1200px;
  padding: 32px 24px 48px;
  margin: 0 auto;
}

.login {
  width: 100%;
  max-width: 380px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page--login {
  --pp-bg: #0f1014;
  --pp-primary: #006ae6;
  --pp-input-email: #26272f;
  --pp-input-password: #1b1c22;
  --pp-text: #f5f5f5;
  --pp-muted: #636674;
  --pp-placeholder: #9a9cae;
  background-color: var(--pp-bg);
}

.page--login .login {
  width: 395px;
  max-width: 100%;
  height: 535.188px;
  min-height: unset;
  padding: 30px;
  justify-content: flex-start;
  align-items: stretch;
  box-sizing: border-box;
}

.page--login .login__logo {
  width: 242px;
  max-width: 100%;
  height: auto;
  margin-bottom: 40px;
  align-self: center;
}

.page--login .login__form {
  width: 100%;
  max-width: none;
}

.page--login .field {
  margin-bottom: 40px;
}

.page--login .field--password {
  margin-bottom: 40px;
}

.page--login .field__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.page--login .field__label-row .label {
  margin-bottom: 0;
}

.page--login .label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--pp-text);
  margin-bottom: 6px;
}

.page--login .input--login {
  width: 100%;
  height: 43px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--pp-text);
  border: 1px solid transparent;
  border-radius: 7.5px;
  outline: none;
  box-shadow: none;
}

.page--login .input--login-email {
  background-color: var(--pp-input-email);
  border-color: var(--pp-input-email);
}

.page--login .input--login-password {
  background-color: var(--pp-input-password);
  border-color: var(--pp-input-password);
}

.page--login .input--login::placeholder {
  color: var(--pp-placeholder);
}

.page--login .input--login:focus {
  box-shadow: none;
}

.page--login .login__link {
  border: none;
  background: none;
  padding: 0;
  font-size: 12px;
  font-weight: 400;
  color: var(--pp-primary);
  text-decoration: none;
  cursor: pointer;
}

.page--login .login__link--toggle {
  display: inline-block;
  margin-top: 8px;
}

.page--login .login__link--back {
  display: inline-block;
  margin-top: 24px;
  font-size: 12px;
}

.page--recover .login__logo {
  margin-bottom: 40px;
}

.page--recover .field {
  margin-bottom: 40px;
}

.page--recover .btn--login {
  margin-top: 0;
}

.page--login .login__verified {
  margin: 24px 0 0;
}

.page--login .verified {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 6px;
  background-color: var(--pp-input-password);
  border-radius: 6px;
  cursor: default;
}

.page--login .verified__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.page--login .verified__box {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  background-color: var(--pp-primary);
  border: 1px solid var(--pp-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.page--login .verified__box::after {
  content: '';
  width: 4px;
  height: 7px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(45deg) translate(-0.5px, -1px);
}

.page--login .verified__text {
  margin-left: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--pp-primary);
}

.page--login .btn--login {
  height: 42px;
  margin-bottom: 15px;
  font-size: 14px;
  font-weight: 500;
  background-color: var(--pp-primary);
  border-radius: 7.5px;
}

.page--login .btn--login:hover {
  background-color: #005fcc;
}

.page--login .btn--login:active {
  background-color: #0054b3;
}

.page--login .footer-note--login {
  margin-top: 12px;
  text-align: center;
  width: 100%;
  max-width: none;
}

.page--login .footer-note__security {
  font-size: 12px;
  font-weight: 400;
  color: var(--pp-muted);
  line-height: 18px;
}

.page--login .footer-note__version {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 400;
  color: var(--pp-muted);
  line-height: 18px;
}

@media (min-width: 641px) {
  .page--login {
    background-color: #0f1115;
  }

  .page--login .login {
    width: 100%;
    max-width: 380px;
    height: auto;
    min-height: auto;
    padding: 30px;
    justify-content: center;
  }

  .page--login .login__logo {
    width: 220px;
    margin-bottom: 72px;
  }

  .page--login .login__form {
    max-width: 100%;
  }

  .page--login .field--password,
  .page--login .login__verified {
    display: none;
  }

  .page--login .field {
    margin-bottom: 28px;
  }

  .page--login .label {
    font-weight: 400;
    margin-bottom: 10px;
  }

  .page--login .input--login,
  .page--login .input--login-email {
    height: 48px;
    background-color: #2a2f3b;
    border-color: #2a2f3b;
    border-radius: 6px;
  }

  .page--login .btn--login {
    height: 48px;
    margin-bottom: 0;
    font-size: 15px;
    font-weight: 600;
    background-color: #0070f3;
    border-radius: 6px;
  }

  .page--login .btn--login:hover {
    background-color: #0060d8;
  }

  .page--login .footer-note--login {
    margin-top: 40px;
    max-width: 100%;
  }

  .page--login .footer-note__version {
    margin-top: 28px;
    font-size: 11px;
    color: #4b5563;
  }
}

.logo {
  width: 220px;
  height: auto;
  display: block;
}

.logo--sm {
  width: 160px;
  margin-bottom: 32px;
}

.login__logo {
  margin-bottom: 72px;
}

.login__form {
  width: 100%;
}

.field {
  margin-bottom: 28px;
}

.label {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 10px;
}

.input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  font-size: 14px;
  color: #e8eaed;
  background-color: #2a2f3b;
  border: none;
  border-radius: 6px;
  outline: none;
  transition: box-shadow 0.15s ease;
}

.input:focus {
  box-shadow: 0 0 0 2px rgba(0, 112, 243, 0.45);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background-color: #0070f3;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn:hover {
  background-color: #0060d8;
}

.btn:active {
  background-color: #0052ba;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn--card {
  height: 44px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
}

.btn__icon {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  flex-shrink: 0;
}

.footer-note {
  margin-top: 48px;
  text-align: center;
}

.footer-note--page {
  margin-top: auto;
  padding: 24px;
  text-align: right;
}

.footer-note__security {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
}

.footer-note__version {
  margin-top: 32px;
  font-size: 11px;
  color: #4b5563;
}

.footer-note__brand {
  font-size: 12px;
  color: #6b7280;
}

.page--credits {
  background-color: #0f1115;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-nav {
  display: none;
}

@media (max-width: 640px) {
  .mobile-nav {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    padding: 0 15px calc(15px + env(safe-area-inset-bottom, 0));
    pointer-events: auto;
  }

  .mobile-nav__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
    width: 100%;
    height: 43px;
    min-height: 43px;
    padding: 3px 6px;
    background: rgba(21, 23, 28, 0.82);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: none;
    border-radius: 999px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    pointer-events: auto;
  }

  .mobile-nav__item {
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 2px 3px;
    color: #b5b7c8;
    user-select: none;
    cursor: default;
    pointer-events: auto;
    border-radius: 999px;
  }

  .mobile-nav__item--active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border-radius: 999px;
  }

  .mobile-nav__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    line-height: 1;
  }

  .mobile-nav__icon i {
    font-size: 15px;
  }

  .mobile-nav__item--active .mobile-nav__icon i {
    font-size: 16px;
  }

  .mobile-nav__label {
    font-size: 8.16px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
  }

  .page--credits .page__content--credits {
    width: 100%;
    max-width: none;
    padding: 14.4px 15px calc(88px + env(safe-area-inset-bottom, 0));
  }
}

.credits-header {
  margin-bottom: 20px;
  text-align: left;
}

.credits-header__title {
  font-size: 15.55px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.credits-header__email {
  margin-top: 8px;
  font-size: 13px;
  color: #9ca3af;
}

.credits-header__email strong {
  color: #ffffff;
  font-weight: 500;
}

.members-banner {
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.members-banner__title {
  font-size: 14px;
  font-weight: 700;
  color: #34d399;
  margin-bottom: 8px;
}

.members-banner__text {
  font-size: 13px;
  line-height: 1.45;
  color: #b5b7c8;
}

.members-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  background-color: #006fee;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.members-banner__btn:hover {
  background-color: #005bc4;
}

.pending-banner {
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 10px;
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.25);
}

.pending-banner__title {
  font-size: 14px;
  font-weight: 700;
  color: #facc15;
  margin-bottom: 8px;
}

.pending-banner__text {
  font-size: 13px;
  line-height: 1.45;
  color: #b5b7c8;
}

.pending-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background-color: #006fee;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.pending-banner__btn:hover {
  background-color: #005bc4;
}

.credits-promo {
  margin-bottom: 16px;
  padding: 12px 14px;
  background-color: #1b1c22;
  border: 1px solid #26272f;
  border-left: 3px solid #006ae6;
  border-radius: 8px;
}

.credits-promo__text {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  color: #b5b7c8;
}

.page__content--credits {
  flex: 1;
  max-width: 420px;
  padding: 16px 16px 24px;
}

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

.plan-card {
  background-color: #15171c;
  border: 1px solid #21262d;
  border-radius: 12px;
  padding: 27px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.plan-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.plan-card__credits {
  display: inline-flex;
  align-items: center;
  padding: 12px;
  font-size: 15.3px;
  font-weight: 400;
  color: #ffffff;
  background-color: #2d333b;
  border-radius: 8px;
  white-space: nowrap;
}

.plan-card__total {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  background-color: #2d333b;
  border-radius: 8px;
  white-space: nowrap;
}

.plan-card__unit {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 16px;
  border: 1px dashed #006fee;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  color: #b5b7c8;
  line-height: 1.3;
}

.plan-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  background-color: #006fee;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  line-height: 1.25;
}

.plan-card__btn:hover {
  background-color: #0056d6;
}

.plan-card__btn:active {
  background-color: #004db8;
}

.plan-card__btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.plan-card__btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .page--credits .credits-header__email,
  .page--credits .footer-note--page {
    display: none;
  }

  .page--credits .credits-header {
    margin-bottom: 18px;
  }

  .page--credits .credits-header__title {
    font-size: 15.55px;
  }
}

@media (min-width: 641px) {
  .page__content--credits {
    padding: 32px 24px 48px;
  }

  .credits-header__title {
    font-size: 15.55px;
  }

  .plan-card {
    padding: 27px;
  }
}

.payment {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.payment__summary {
  width: 100%;
  background: #171a21;
  border: 1px solid #252932;
  border-radius: 10px;
  padding: 20px;
}

.payment__summary h1 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.payment__summary p {
  font-size: 14px;
  color: #9ca3af;
  line-height: 1.5;
}

.payment__summary strong {
  color: #ffffff;
}

.payment__qr {
  width: 280px;
  height: 280px;
  background: #ffffff;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment__qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.payment__copy {
  width: 100%;
}

.payment__copy label {
  display: block;
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 8px;
}

.payment__copy-box {
  display: flex;
  gap: 8px;
}

.payment__copy-box .input {
  flex: 1;
  height: 44px;
  font-size: 12px;
}

.payment__copy-box .btn {
  width: auto;
  padding: 0 16px;
  height: 44px;
  white-space: nowrap;
}

.payment__hint {
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  line-height: 1.5;
}

.payment__back {
  font-size: 13px;
  color: #9ca3af;
  margin-top: 8px;
}

.payment__back:hover {
  color: #ffffff;
}

.payment__status {
  width: 100%;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.payment__status--waiting {
  background: rgba(234, 179, 8, 0.12);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.25);
}

.payment__status--paid {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.payment__status--paid a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
}

.loading,
.error {
  text-align: center;
  color: #9ca3af;
  padding: 48px 0;
}

.error {
  color: #f87171;
}

.hidden {
  display: none !important;
}
