  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3000000;
      -webkit-backdrop-filter: blur(25px); backdrop-filter: blur(25px);
    
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border);
    height: 70px;
    transition: all 0.4s;
    overflow: visible !important;
  }

  .nav-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: visible !important;
  }

  .logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: opacity 0.3s;
  }

  .logo:hover {
    opacity: 0.8;
  }

  .logo-monogram {
    font-family: 'Times New Roman', Times, serif;
    font-weight: 400;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 42px;
    height: 42px;
  }

  .logo-ring {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    border: 1.5px solid #d4af37;
    border-right-color: transparent;
    border-top-color: rgba(212, 175, 55, 0.1);
    border-bottom-color: rgba(212, 175, 55, 0.8);
    border-left-color: rgba(212, 175, 55, 1);
    transform: rotate(-15deg);
    z-index: 0;
  }

  .logo-sparkle {
    position: absolute;
    top: 4px;
    right: -2px;
    width: 14px;
    height: 14px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .logo-sparkle::before, .logo-sparkle::after {
    content: '';
    position: absolute;
    background: linear-gradient(90deg, transparent, #fff2cd, transparent);
  }

  .logo-sparkle::before {
    width: 100%;
    height: 1.5px;
  }

  .logo-sparkle::after {
    width: 1.5px;
    height: 100%;
    background: linear-gradient(180deg, transparent, #fff2cd, transparent);
  }

  .logo-sparkle-center {
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 6px 1px #d4af37;
    z-index: 3;
  }

  .logo-letters {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
  }

  .logo-letters span {
    display: inline-block;
    background: linear-gradient(135deg, #d4af37 0%, #fff2cd 40%, #d4af37 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #d4af37;
  }

  .logo-letters .m-l {
    font-size: 32px;
    margin-right: -8px;
    transform: translateY(2px);
  }

  .logo-letters .m-v {
    font-size: 24px;
  }

  .logo-text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 2px;
  }

  .logo-text {
    font-size: 20px;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #d4af37 0%, #fff2cd 40%, #d4af37 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #d4af37;
    line-height: 1;
    margin-bottom: 2px;
  }

  .logo-tagline {
    font-size: 9px;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 3px;
    color: #d4af37;
    text-transform: uppercase;
    line-height: 1;
    opacity: 0.9;
  }

  .nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
  }
  @media (min-width: 901px) {
    .nav-links {
      margin-left: auto;
      margin-right: 50px;
    }
  }

  .nav-link i.mobile-only {
    display: none;
  }

  @media (max-width: 900px) {
    .logo {
      transform: scale(0.85);
      transform-origin: left center;
    }
    .logo-monogram {
      width: 46px;
      height: 46px;
    }
    .logo-sparkle {
      top: 2px;
      right: -2px;
      width: 14px;
      height: 14px;
    }
    .logo-letters .m-l {
    font-size: 32px;
    margin-right: -8px;
    transform: translateY(2px);
  }
    .logo-letters .m-v {
    font-size: 24px;
  }

    .nav-link i.mobile-only {
      display: inline-block;
      font-size: 18px;
    }
  }

  .nav-link {
    color: var(--nav-link-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    opacity: 0.7;
    transition: 0.3s;
  }

  .nav-link:hover,
  .nav-link.active {
    opacity: 1;
    color: var(--primary);
  }

  .nav-btn {
    padding: 8px 20px;
    font-size: 15px;
    border-radius: 12px;
  }

  .logout-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
  }

  .logout-link .logout-text {
    display: none;
  }

  .logout-link:hover {
    color: var(--danger);
  }

  .ios-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    background: #ff3b30;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 0 9px;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--nav-bg);
    z-index: 9999 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  }

  .small-badge {
    top: -5px;
    right: -5px;
    font-size: 15px;
    min-width: 25px;
    height: 25px;
  }

  .lang-link {
    opacity: 0.5;
    font-size: 13px;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    transition: 0.3s;
  }

  .lang-link:hover {
    opacity: 1;
    color: var(--primary);
  }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text); /* Убедитесь, что переменная --text объявлена в :root */
  font-size: 36px;  /* Немного увеличим для удобства нажатия */
  cursor: pointer;
  padding: 15px;
  margin-left: 15px;
}
  .header-action-icons {
    display: flex; 
    align-items: center;
    gap: 15px;
    margin-left: auto;
    margin-right: 20px;
    overflow: visible !important;
  }
.mobile-toggle i {
  color: inherit; 
  display: inline-block;
}
  .header-icon-link {
    color: var(--text);
    font-size: 20px;
    min-width: 40px;
    opacity: 0.7;
    transition: 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    text-decoration: none;
    overflow: visible !important;
    flex-shrink: 0;
  }

  .header-icon-link:hover {
    opacity: 1;
    color: var(--primary);
    transform: translateY(-2px);
  }
/* Стили для мобильных устройств (до 900px) */
@media (max-width: 900px) {
  .mobile-toggle {
    /* Критически важно для Firefox: флекс принудительно покажет внутренности */
    display: flex !important; 
    align-items: center;
    justify-content: center;
    
    /* Размеры, позиционирование и сброс дефолтных стилей кнопки */
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 12000;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
  }

  /* Принудительное выравнивание и цвет для самой иконки */
  .mobile-toggle i {
    display: inline-block !important;
    font-size: 36px !important; /* Размер иконки */
    /* Если var(--text) не работает, иконка станет черной #000 */
    color: var(--text, #000000) !important; 
    line-height: 1 !important;
  }
}
  @media (max-width: 900px) {
    .main-nav { height: 90px !important; }
    .app-wrapper { margin-top: 90px !important; height: calc(100vh - 90px) !important; height: calc(100dvh - 90px) !important; }
    .logo-monogram { width: 42px !important; height: 42px !important; }
    .logo-letters { font-size: 21px !important; }
    .logo-text { font-size: 27px !important; }
    .logo-tagline { display: none !important; }
    
    .header-icon-link {
      width: 48px !important;
      height: 48px !important;
      min-width: 48px !important;
      font-size: 24px !important;
    }

    .nav-links .desktop-only-nav-item { display: none !important; }
    
    .desktop-only-icon {
      display: none !important;
    }
    .cab-text { display: none !important; }
    .btn-luxe.nav-btn.cab-btn { 
      padding: 0 !important; 
      background: transparent !important; 
      box-shadow: none !important; 
      border: none !important; 
      width: 48px !important;
      min-width: 48px !important;
      height: 48px !important;
      justify-content: center !important;
      flex-shrink: 0 !important;
    }
    .cab-btn .cab-av {
      width: 48px !important;
      height: 48px !important;
      font-size: 24px !important;
    }
    .header-action-icons {
      display: flex; /* Show only on mobile */
      margin-right: 10px;
      gap: 12px !important;
      overflow: visible !important;
    }
    .nav-links {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: var(--bg) !important;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 15px;
      padding: 40px;
      transform: translateY(-100%);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
      z-index: 11000;
    }

    .nav-links.open {
      transform: translateY(0);
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
    }

 

    /* Unified Button Design */
    .nav-link,
    .nav-btn,
    .logout-link,
    .header-balance {
      width: 85% !important;
      max-width: 320px;
      padding: 16px 20px !important;
      border-radius: 18px !important;
      background: var(--surface) !important;
      border: 1px solid var(--border) !important;
      display: flex !important;
      justify-content: center !important;
      align-items: center !important;
      font-size: 16px !important;
      font-weight: 700 !important;
      color: var(--text) !important;
      gap: 12px !important;
      margin: 0 !important;
    }

    .nav-unread-badge {
      position: static;
      background: var(--primary);
      box-shadow: 0 0 15px var(--primary);
    }

    .btn-luxe.nav-btn {
      background: var(--grad) !important;
      border: none !important;
    }

    .logout-link {
      color: #ff5e5e !important;
      border-color: rgba(255, 94, 94, 0.2) !important;
      margin-top: 15px !important;
    }

    .logout-link .logout-text {
      display: inline;
    }

    .lang-switch {
      margin-top: 5px;
      width: 85%;
      max-width: 320px;
    }

    .lang-link {
      color: var(--text) !important;
      font-size: 14px;
      opacity: 0.5;
      text-decoration: none;
      display: block;
      text-align: center;
    }

    .messenger-link {
      display: none !important;
    }
  }

  @media (min-width: 901px) {
    .nav-links .mobile-only-nav-item { display: none !important; }
  }

  .desktop-only-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 16px;
    border-radius: 12px;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: #fff;
    transition: all 0.3s ease;
    text-decoration: none !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  }
  .desktop-only-icon:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: #d4af37;
    transform: translateY(-2px);
    color: #d4af37;
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.25);
  }

  /* VK-Style Global Notifications */
  #luxe-global-notifs {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
  }
  .luxe-toast {
    background: rgba(20, 20, 35, 0.85);
      -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    color: #fff;
    font-family: 'Inter', sans-serif;
    min-width: 250px;
    max-width: 320px;
    cursor: pointer;
    pointer-events: auto;
    animation: toast-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transition: 0.3s;
  }
  .luxe-toast:hover {
    transform: translateX(5px);
    background: rgba(30, 30, 50, 0.95);
    border-color: var(--primary);
  }
  .luxe-toast.fade-out {
    animation: toast-out 0.4s ease forwards;
  }
  .luxe-toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--grad);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
  }
  .luxe-toast-content { flex: 1; }
  .luxe-toast-title { font-weight: 800; font-size: 13px; margin-bottom: 2px; color: var(--primary); }
  .luxe-toast-text { font-size: 12px; opacity: 0.8; }

  @keyframes toast-in {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
  }
  @keyframes toast-out {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(-100%); opacity: 0; }
  }
