.mobile-bottom-nav {
  display: none;
}

.page-back {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  margin: 0 0 24px;
  color: #7c92ff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
}

@media (max-width: 700px) {
  .page-back {
    min-height: 36px;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 800;
  }

  .mobile-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: 76px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
    background: rgba(9, 10, 13, 0.92);
    box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.38);
    -webkit-backdrop-filter: blur(22px) saturate(1.16);
    backdrop-filter: blur(22px) saturate(1.16);
  }

  .mobile-bottom-link {
    display: flex;
    min-width: 0;
    min-height: 58px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 3px;
    border: 0;
    background: transparent;
    color: rgba(244, 245, 247, 0.48);
    text-align: center;
    text-decoration: none;
  }

  .mobile-bottom-link.is-active,
  .mobile-bottom-link[aria-current="page"] {
    color: #fff;
  }

  .mobile-bottom-icon {
    width: 29px;
    height: 29px;
    flex: 0 0 auto;
  }

  .mobile-bottom-label {
    max-width: 100%;
    overflow: hidden;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.mobile-account-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.58);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.mobile-account-backdrop.is-open {
  display: grid;
}

.mobile-account-dialog {
  width: min(480px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background: rgba(18, 18, 21, 0.96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
  color: #f4f5f7;
}

.mobile-account-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.mobile-account-head h2 {
  margin: 0;
  font-size: 28px;
}

.mobile-account-head p,
.mobile-account-status {
  margin: 8px 0 0;
  color: #a1a1aa;
  font-size: 13px;
  line-height: 1.5;
}

.mobile-account-close {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #f4f5f7;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.mobile-account-form,
.mobile-account-profile {
  display: grid;
  gap: 14px;
}

.mobile-account-form .field {
  display: grid;
  gap: 7px;
}

.mobile-account-form .field label {
  color: #a1a1aa;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.mobile-account-form input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: #f4f5f7;
  font: inherit;
}

.mobile-account-form .login-actions {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.mobile-account-primary {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  font-weight: 800;
  cursor: pointer;
}

.mobile-account-primary {
  background: #e8e8ea;
  color: #08080a;
}

.mobile-account-toggle {
  margin: 0;
  color: #a1a1aa;
  font-size: 13px;
  line-height: 1.5;
}

.mobile-account-toggle button {
  border: 0;
  background: transparent;
  color: #f4f5f7;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.mobile-account-profile .profile-menu-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-account-profile .profile-stat {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.mobile-account-profile .profile-stat strong,
.mobile-account-profile .profile-stat span {
  display: block;
}

.mobile-account-profile .profile-stat strong {
  color: #f4f5f7;
  font-size: 15px;
}

.mobile-account-profile .profile-stat span {
  margin-top: 3px;
  color: #70717a;
  font-size: 11px;
}

.mobile-account-profile .profile-menu-actions {
  display: grid;
  gap: 8px;
}

.mobile-account-profile .profile-menu-action {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  color: #f4f5f7;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.mobile-account-profile .profile-menu-action.is-danger {
  background: rgba(255, 112, 112, 0.16);
  color: #ffb6b6;
}
