@media (max-width: 768px) {
  #sidebar-slot::before {
    content: '';
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: var(--GlobalBlue);
    z-index: 999;
  }
}

.sidebar,
.sidebar * {
  box-sizing: border-box;
}

.sidebar {
  width: var(--sidebar-w);
  background: var(--GlobalBlue);
  box-shadow: 0 0 4px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 64px 0 24px;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  z-index: 3000;
  transition: transform 0.3s ease;
}

.sidebar-top {
  display: flex;
  justify-content: center;
}

.sidebar-logo {
  width: 100px;
  height: auto;
  transition: transform 0.1s ease;
}

.sidebar-logo:hover {
  transform: scale(1.05);
}

.sidebar-login {
  width: 100%;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 56px;
  margin-top: 120px;
  color: var(--GlobalLinkGray);
  text-decoration: none;
  font-size: 16px;
  transition: background 0.1s ease, color 0.1s ease;
}

.sidebar-login:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--GlobalWhite);
}

.nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 150px;
  flex: 1;
}

.nav-item {
  width: 100%;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 8px 56px;
  border-radius: 0;
  color: var(--GlobalLinkGray);
  text-decoration: none;
  font-size: 16px;
  margin-right: 0;
  transition: background 0.1s ease, color 0.1s ease;
}

.nav-item::before {
  content: none;
}

.nav-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-icon img {
  width: 30px;
  height: 30px;
}

.nav-icon svg {
  width: 30px;
  height: 30px;
  display: block;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--GlobalWhite);
}

.nav-item.active {
  background: var(--GlobalDarkblue);
  color: var(--GlobalWhite);
}

.nav-item.active .nav-icon svg {
  opacity: 1;
}

.sidebar-bottom {
  width: 100%;
  margin-top: auto;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 16px;
}

.sidebar-link {
  color: var(--GlobalBorderColorGray);
  text-decoration: none;
  font-size: 16px;
  padding: 8px 56px;
  display: block;
  width: 100%;
  border-radius: 0;
  transition: background 0.1s ease, color 0.1s ease;
}

.sidebar-link:hover {
  color: var(--GlobalLightBlue);
  font-weight: 700;
  text-decoration: none;
}

.sidebar-link.active {
  background: var(--GlobalDarkblue);
  color: var(--GlobalWhite);
  pointer-events: none;
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }
}

.sidebar-toggle {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1001;
  background: var(--GlobalBlue);
  color: var(--GlobalWhite);
  border: none;
  border-radius: 6px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: background 0.1s ease;
}

.sidebar-toggle:hover {
  background: var(--GlobalBlueHover);
}

@media (max-width: 768px) {
  .sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
  }
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
  .sidebar-overlay.active {
    display: block;
    opacity: 1;
  }
}

.mobile-nav {
  display: none;
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }

  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: var(--GlobalBlue);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    justify-content: space-around;
    align-items: stretch;
    padding: 0 8px;
    box-sizing: border-box;
    overflow: visible;
    animation: fadeInNav 0.15s ease-out;
  }

  @keyframes fadeInNav {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 100%;
    flex: 1 1 0;
    min-width: 0;
    border-radius: 16px;
    color: var(--GlobalLinkGray);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    padding: 8px 4px;
    box-sizing: border-box;
  }

  .mobile-nav-item:hover,
  .mobile-nav-item.active {
    background: var(--GlobalDarkblue);
    color: var(--GlobalWhite);
  }

  .mobile-nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .mobile-nav-label {
    font-size: 12px;
    font-weight: 400;
    text-align: center;
  }

  .main {
    padding-bottom: 100px;
  }
}

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

@media (max-width: 768px) {
  .guest-mode .mobile-nav-guest {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: 0 16px;
    position: fixed;
    width: 100%;
    height: 80px;
    left: 0;
    bottom: 0;
    background: #2A3647;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    box-sizing: border-box;
    overflow: visible;
    animation: fadeInNav 0.15s ease-out;
  }

  .guest-mode .mobile-nav {
    display: none;
  }

  .mobile-nav-guest-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    flex: 0 0 auto;
    height: 100%;
    border-radius: 16px;
    color: #CDCDCD;
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 120%;
    transition: background 0.2s ease, color 0.2s ease;
    box-sizing: border-box;
  }

  .mobile-nav-guest-item:first-child {
    margin-right: auto;
  }

  .mobile-nav-guest-item:nth-child(2) {
    margin-right: 8px;
  }

  .mobile-nav-guest-item:nth-child(n + 2) {
    flex: 0 1 auto;
    min-width: 0;
    padding: 8px 6px;
  }

  .mobile-nav-guest-item.active {
    background: #091931;
    color: #FFFFFF;
  }

  .mobile-nav-guest-item.active .mobile-nav-guest-icon {
    display: none;
  }

  .mobile-nav-guest-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav-guest-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .mobile-nav-guest-label {
    font-size: 14px;
    font-weight: 400;
    line-height: 120%;
    text-align: center;
    white-space: normal;
  }
}
