@media (max-width: 768px) {
  .nav-menu-bottom .nav-more-btn {
    cursor: pointer;
  }
}

@media (max-width: 600px) {
  .nav-login-modal-window {
    padding: 32px 22px;

    border-radius: 24px;

    max-width: 100%;
  }

  .nav-login-modal-logo {
    width: 62px;
    height: 62px;

    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .nav-navbar {
    display: flex;
    position: absolute;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 10px 20px;
    background: var(--card);
    top: 0;
    width: 100%;
    margin-top: 0px;
    margin-left: 0px;
    z-index: 9999999;
    border-bottom: 2px solid var(--background3);
    box-shadow: var(--box-shadow1);
  }

  .nav-navbar-logo {
    color: white;
    height: 27px;
    text-decoration: none;
    z-index: 1001;
  }

  .nav-navbar-menu {
    display: flex;
  }

  .nav-mobile-nav-container {
    display: flex;
    width: 26px;
  }

  .nav-mobile-navbar-items {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-right: 20px;
  }

  .nav-navbar-menu-toggle {
    display: block;
    font-size: 27px;
    color: var(--text);
    cursor: pointer;
    padding: 16px 0px;
  }

  .nav-navbar-buttons-container {
    display: none;
  }

  .nav-login {
    display: none;
  }

  .nav-register {
    display: none;
  }

  .nav-navbar-auth-buttons {
    display: none !important;
  }

  .nav-menu-auth {
    padding-bottom: 0;
    margin-bottom: 50px;
  }

  .nav-menu-items {
    padding-bottom: 0px;
    height: 100%;
  }

  .nav-notification-bell {
    position: absolute;
    right: 0;
    display: inline-block;
    cursor: pointer;
    height: 8px;
    margin-right: 62px;
    margin-top: -21px;
    font-size: 27px;
    color: white;
    z-index: 999999999;
  }

  .nav-notification-count {
    display: block;
    position: absolute;
    top: 16px;
    right: -5px;
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 1px 6px;
    font-size: 12px;
  }

  .nav-notification-dropdown-content {
    opacity: 0;
    transition:
      opacity 0.2s ease,
      background-color 0.2s ease;
    display: none;
    position: absolute;
    width: 390px;
    max-width: 390px;
    border-radius: 0px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
    z-index: 1;
    font-size: 17px;
    left: 0px;
    right: 0px;
    top: 62px;
    overflow: hidden;
  }

  .nav-notification-bell:hover .nav-notification-dropdown-content {
    display: block;
  }

  #nav-friend-requests-list {
    list-style: none;
    margin: 0;
  }

  .nav-friend-requests-list li {
    margin: 0px 0px;
    padding: 2px 4px;
    text-align: center;
    color: #e3e3e3;
    border-bottom: 1px solid #2d2d2d;
    transition: background-color 0.2s ease;
  }

  #nav-friend-requests-list li:last-child {
    border-bottom: none;
  }

  .nav-empty-message {
    font-size: 20px;
  }

  #nav-friend-requests-list li:hover {
    background-color: rgb(21 21 21 / 90%);
  }

  .nav-request-buttons {
    display: flex;
    gap: 6px;
    width: 100%;
  }

  .nav-accept-request {
    border: none;
    cursor: pointer;
    color: rgb(255, 255, 255);
    background-color: rgb(60, 147, 60);
    padding: 1px 8px;
    transition:
      color 0.2s ease,
      background-color 0.2s ease;
    margin-top: 1px;
    width: 390px;
    border-radius: 8px;
  }

  .nav-accept-request:hover {
    color: green;
    background-color: rgb(210, 228, 210);
  }

  .nav-friend-request-profile-picture {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin-right: 4px;
    padding: 8px;
  }

  .nav-friend-request-username {
    font-weight: 800;
    color: white;
    font-size: 27px;
  }

  .nav-friend-request-text {
    font-weight: 500;
    color: rgb(205, 205, 205);
    font-size: 14px;
    margin-top: 1px;
    margin-bottom: 5px;
  }

  .nav-decline-request {
    border: none;
    cursor: pointer;
    color: rgb(255, 255, 255);
    background-color: rgb(147, 60, 60);
    padding: 1px 8px;
    width: 390px;
    transition:
      color 0.2s ease,
      background-color 0.2s ease;
    margin-top: 1px;
    border-radius: 8px;
  }

  .nav-decline-request:hover {
    color: red;
    background-color: rgb(220, 193, 193);
  }

  .nav-menu-bottom {
    display: flex;
    text-align: center;
    align-items: center;
    position: fixed;
    justify-content: space-evenly;
    backdrop-filter: blur(3px);
    width: 100%;
    height: 70px;
    background-color: var(--loBackground3);
    box-shadow: var(--box-shadow2);
    bottom: 0;
    z-index: 99999;
    gap: 4px;
    padding-inline: 8px;
    box-sizing: border-box;
  }

  .nav-menu-bottom > a {
    flex: 1 1 0;
    min-width: 0;
    min-height: 51px;
    justify-content: center;
  }

  .nav-menu-bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    width: 20%;
    border-radius: 12px;
    color: var(--text);
  }

  .nav-menu-bottom-item-active {
    background: var(--primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    width: 20%;
    border-radius: 12px;
    height: 51px;
    justify-content: center;
    color: var(--secondary);
  }

  .nav-menu-bottom-item-active .nav-menu-bottom-icon {
    color: var(--secondary);
  }

  .nav-menu-bottom-item-active .nav-menu-bottom-text {
    color: var(--secondary);
  }

  .nav-menu-bottom-item-noanimation {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    width: 20%;
    background: transparent;
    color: var(--text);
  }

  .nav-menu-bottom-icon {
    color: var(--text);
    font-size: 20px;
    transition: color 0.25s ease;
  }

  .nav-menu-bottom-text {
    color: var(--text);
    font-size: 13px;
    margin-top: 6px;
    white-space: nowrap;
  }

  .nav-menu-bottom-item:hover .nav-menu-bottom-icon {
    animation: iconBounce 0.25s cubic-bezier(0.12, -0.22, 0.93, 0.4);
  }

  @keyframes iconBounce {
    0% {
      transform: translateY(0);
    }
    35% {
      transform: translateY(3px);
    }
    70% {
      transform: translateY(-1px);
    }
    100% {
      transform: translateY(0);
    }
  }

  .nav-menu-bottom-dropdown {
    position: fixed;
    bottom: 70px;
    left: 0;
    width: 100%;
    font-weight: 500;
    font-size: 20px;
    box-shadow: var(--box-shadow2);
    display: block;
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 0.35s ease,
      transform 0.35s ease,
      backdrop-filter 0.35s ease;
    text-align: center;
    overflow: hidden;
    transform: translateY(12px);
    z-index: 99999;
    border-radius: 27px 27px 0px 0px;
  }

  .nav-menu-bottom-dropdown.nav-active {
    opacity: 1;
    transform: translateY(0px);
    pointer-events: auto;
    backdrop-filter: blur(2px);
    border-radius: 27px 27px 0px 0px;
  }

  .nav-menu-bottom-dropdown ul {
    background-color: var(--loBackground3);
    list-style-type: none;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
    color: var(--text);
    max-height: 234px;
    overflow-y: auto;
    overflow-x: hidden;
    backdrop-filter: blur(0px);
  }

  .nav-menu-bottom-dropdown li:first-child {
    border-top: 0px solid var(--border);
  }

  .nav-menu-bottom-dropdown li {
    padding: 12px;
    border-top: 1px solid var(--border);
    width: 100%;
  }

  .nav-menu-bottom-dropdown a {
    display: block;
    padding: 10px 6px;
    text-decoration: none;
    align-content: center;
  }

  .nav-disabled {
    pointer-events: none;
    opacity: 0.4;
  }

  .nav-menu-bottom-dropdown.nav-disabled {
    pointer-events: none;
    opacity: 0.4;
  }

  .nav-user-dropdown-ca-container:not(.nav-user-dropdown-ca-container-mobile) {
    display: none;
  }

  .nav-user-dropdown-ca-container-mobile {
    flex: 1;
    width: 100%;
  }

  .nav-user-dropdown-ca-container-mobile .nav-user-dropdown-button-ca {
    text-decoration: none;
    color: var(--text);
    padding: 8px;
    border-radius: 16px;
    font-size: 14px;
    text-align: center;
    transition: 0.25s ease;
    background-color: var(--background3);
    border: 1px solid var(--background3);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 55px;
    width: 100%;
    margin: 0;
    gap: 4px;
    box-shadow: var(--box-shadow3);
  }

  .nav-user-dropdown-ca-container-mobile .nav-user-dropdown-button-icon {
    font-size: 20px;
    width: 27px;
    text-align: center;
  }

  .nav-user-dropdown-ca-container-mobile .nav-user-dropdown-menu-ca {
    display: flex;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    bottom: calc(100% + 12px);
    top: auto;
    right: 0;
    left: 0;
    width: 328px;
    background-color: rgb(10 10 10 / 92%);
    box-shadow: 0px 0px 16px 0px rgb(0 0 0 / 92%);
    color: white;
    border-radius: 16px;
    flex-direction: column;
    transition:
      opacity 0.3s ease,
      transform 0.3s ease;
    transform: translateY(8px);
    z-index: 100000;
    overflow: hidden;
    margin: 0 auto;
  }

  .nav-user-dropdown-ca-container-mobile .nav-user-dropdown-menu-ca.nav-show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0px);
  }

  .nav-user-dropdown-ca-container-mobile .nav-saved-accounts-list {
    padding: 16px 16px 0px 16px;
  }

  .nav-user-dropdown-ca-container-mobile .nav-user-dropdown-item-ca {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
  }

  .nav-user-dropdown-ca-container-mobile .nav-account-clickable {
    display: flex;
    align-items: center;
    flex-grow: 1;
    cursor: pointer;
  }

  .nav-user-dropdown-ca-container-mobile .nav-account-clickable img {
    width: 47px;
    height: 47px;
    border-radius: 50%;
    object-fit: cover;
  }

  .nav-user-dropdown-ca-container-mobile .nav-account-clickable span {
    margin-left: 12px;
    font-size: 17px;
  }

  .nav-user-dropdown-ca-container-mobile .nav-remove-account-btn {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    font-size: 12px;
    background: #ff000024;
    color: white;
    border: none;
  }

  .nav-user-dropdown-ca-container-mobile .nav-no-accounts {
    padding: 16px;
    text-align: center;
    font-size: 16px;
  }

  .nav-user-dropdown-ca-container-mobile .nav-add-account-container {
    margin-bottom: 12px;
    text-align: center;
    padding: 0px 16px;
  }

  .nav-user-dropdown-ca-container-mobile .nav-add-account-btn {
    padding: 12px;
    width: auto;
    padding-inline: 20px;
    color: white;
    font-size: 16px;
    background-color: #8e8e8e12;
    border: none;
    border-radius: 12px;
    cursor: pointer;
  }

  .nav-user-dropdown-ca-container-mobile .nav-admin-login-section {
    border-top: 1px solid #4444448f;
    padding: 12px 16px 16px 16px;
    display: flex;
    gap: 8px;
  }

  .nav-user-dropdown-ca-container-mobile .nav-admin-login-input {
    height: 43px;
    width: 100%;
    font-size: 16px;
    border: 1px solid rgb(45 45 45 / 9%);
    border-radius: 12px;
    background-color: rgb(79 79 79 / 20%);
    color: #ffffff;
    outline: none;
    text-align: center;
    padding: 0px 8px;
  }

  .nav-user-dropdown-ca-container-mobile .nav-admin-login-btn {
    width: 70px;
    min-width: 70px;
    border: none;
    border-radius: 12px;
    background-color: #8e8e8e12;
    color: white;
    font-size: 16px;
  }

  .nav-user-dropdown-ca-container-mobile .nav-admin-search-dropdown {
    background: #222;
    margin-top: 8px;
    border-radius: 8px;
    max-height: 156px;
    overflow-y: auto;
    display: none;
  }
}

@media (min-width: 769px) {
  .nav-user-dropdown-ca-container-mobile {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-inbox-bottom-link {
    position: relative;
  }

  .nav-menu-bottom-item [data-nav-count='inbox'] {
    right: calc(50% - 23px);
    bottom: auto;
    top: -5px;
    border-color: var(--loBackground3, var(--card));
  }
}
@media (max-width: 600px) {
  .nav-redeem-modal {
    padding: 12px;
    align-items: end;
  }
  .nav-redeem-dialog {
    width: 100%;
    padding: 26px 20px calc(22px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 18px 18px;
  }
  .nav-redeem-dialog h2 {
    font-size: 23px;
  }
  .nav-redeem-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }
}

.nav-more-overlay {
  display: none;
}
@media (max-width: 768px) {
  .nav-more-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    background: rgb(0 0 0 / 48%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.35s ease,
      visibility 0s 0.35s;
  }
  .nav-more-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.35s ease;
  }
  .nav-menu-bottom-dropdown {
    display: flex;
    flex-direction: column;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 95vh;
    height: 95dvh;
    max-height: 95dvh;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    z-index: 2147483001;
    border: 1px solid var(--background3);
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
    background: var(--card);
    box-shadow: var(--box-shadow2);
    opacity: 1;
    visibility: hidden;
    transform: translateY(100%);
    transition:
      transform 0.35s ease,
      visibility 0s 0.35s;
    pointer-events: none;
    text-align: left;
    backdrop-filter: none;
  }
  .nav-menu-bottom-dropdown.nav-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: transform 0.35s ease;
    pointer-events: auto;
    backdrop-filter: none;
    border-radius: 24px 24px 0 0;
  }
  .nav-more-header {
    position: relative;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 18px 22px 10px;
    box-sizing: border-box;
    touch-action: none;
  }
  .nav-more-handle {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 38px;
    height: 4px;
    border-radius: 99px;
    background: var(--background4);
    transform: translateX(-50%);
  }
  .nav-more-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
  }
  .nav-more-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    color: var(--text2);
    background: transparent;
    font-size: 16px;
    cursor: pointer;
  }
  .nav-more-close:hover {
    background: transparent;
    color: var(--text);
  }
  .nav-more-scroll {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 0 14px max(24px, env(safe-area-inset-bottom));
    scrollbar-width: thin;
    scrollbar-color: var(--background4) transparent;
  }
  .nav-menu-bottom-dropdown ul {
    background: transparent;
    max-height: none;
    overflow: visible;
    margin: 0;
    padding: 0;
    list-style: none;
    backdrop-filter: none;
  }
  .nav-menu-bottom-dropdown li {
    width: auto;
    border: 0;
    padding: 0;
    margin: 3px 0;
  }
  .nav-menu-bottom-dropdown .nav-more-profile {
    display: flex;
    position: relative;
    isolation: isolate;
    align-items: center;
    gap: 14px;
    overflow: hidden;
    min-height: 108px;
    margin: 0 0 24px;
    padding: 20px 16px;
    border-radius: 14px;
    background: var(--background2);
    color: var(--text);
    box-sizing: border-box;
  }
  .nav-more-profile::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
      to right,
      var(--background2),
      color-mix(in srgb, var(--background2) 80%, transparent)
    );
  }
  .nav-more-profile-banner {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
  }
  .nav-more-profile-picture {
    width: 58px;
    height: 58px;
    flex: none;
    border-radius: 50%;
    object-fit: cover;
  }
  .nav-more-profile-details {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
  }
  .nav-more-profile-details strong {
    font-size: 17px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .nav-more-profile-details small {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
  }
  .nav-more-section {
    margin: 0 0 22px;
  }
  .nav-more-section h3 {
    margin: 0 13px 8px;
    color: var(--text3);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.4;
    letter-spacing: 0.09em;
    text-transform: uppercase;
  }
  .nav-menu-bottom-dropdown .nav-more-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    padding: 0 8px 0 13px;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--text);
    background: transparent;
    transition:
      background-color 0.15s ease,
      color 0.15s ease;
  }
  .nav-menu-bottom-dropdown .nav-more-link:is(.active, :hover) {
    background: var(--background3);
  }
  .nav-menu-bottom-dropdown .nav-more-link:active {
    background: var(--background4);
    color: var(--text3);
  }
  .nav-more-link-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 32px;
    width: 32px;
    font-size: 21px;
  }
  .nav-more-link-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
  }
  .nav-more-count {
    flex: none;
    margin-left: auto;
    padding-left: 20px;
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
  }
  .nav-more-organization-link {
    flex: none;
    margin-left: auto;
    color: var(--text3);
    font-size: 12px;
    transition: color 0.2s ease;
  }
  .nav-more-link:hover .nav-more-organization-link {
    color: var(--text);
  }
  .nav-more-link:focus-visible,
  .nav-more-close:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: -2px;
  }
}
