.api-degraded-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.12) 0%, rgba(255, 120, 0, 0.08) 100%);
  border-bottom: 1px solid rgba(255, 152, 0, 0.2);
  color: #FFB74D;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 15px;
  text-align: center;
  z-index: 10001;
}
.api-degraded-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .api-degraded-banner {
    font-size: 12px;
    padding: 5px 12px;
    background: rgba(255, 152, 0, 0.1);
    border-bottom: 1px solid rgba(255, 152, 0, 0.12);
  }
  .api-degraded-icon {
    width: 16px;
    height: 16px;
  }
}
.header {
      color: #fff;
      font-weight: bold;
      border-radius: 0;
      padding: 3px 15px;
      position: sticky;
      top: 0;
      z-index: 10000;
      box-sizing: border-box;
      overflow: visible;
    }
    .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 15px;
      position: relative;
      width: 100%;
      box-sizing: border-box;
      overflow: visible;
    }
    .header-left {
      display: flex;
      align-items: center;
      gap: 15px;
    }
    .burger-menu {
      display: none;
      flex-direction: column;
      cursor: pointer;
      padding: 8px;
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      border: 1px solid rgba(255, 255, 255, 0.18);
      border-radius: 18px;
      transition: all 0.3s ease;
    }
    .burger-menu:hover {
      background: rgba(255, 255, 255, 0.15);
    }
    .burger-line {
      width: 20px;
      height: 2px;
      background-color: #fff;
      margin: 2px 0;
      transition: 0.3s;
    }
    .burger-menu.active .burger-line:nth-child(1) {
      transform: rotate(-45deg) translate(-5px, 6px);
    }
    .burger-menu.active .burger-line:nth-child(2) {
      opacity: 0;
    }
    .burger-menu.active .burger-line:nth-child(3) {
      transform: rotate(45deg) translate(-5px, -6px);
    }
    .mobile-nav {
      display: none;
      position: absolute;
      top: calc(100% + 1px);
      left: 15px;
      right: auto;
      background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
      border: 1px solid rgba(255,255,255,0.1);
      border-top: none;
      border-radius: 0 0 8px 8px;
      box-shadow: 0 4px 20px rgba(0,0,0,0.5);
      z-index: 10001;
      padding: 15px;
      width: 300px;
      max-width: calc(100vw - 30px);
      box-sizing: border-box;
      min-height: 200px;
    }
    .mobile-nav.active {
      display: block !important;
      visibility: visible !important;
      opacity: 1 !important;
    }
    .mobile-nav a {
      display: block;
      color: #fff;
      text-decoration: none;
      font-weight: bold;
      font-size: 20px;
      padding: 16px 0;
      border-bottom: none;
      border-top: none;
      transition: color 0.2s;
      text-align: center;
    }
    .mobile-nav a:hover {
      color: #ffe066;
    }
    .mobile-nav a.active {
      color: #ffe066;
      text-shadow: 0 0 8px rgba(255, 224, 102, 0.5);
    }
    .mobile-dropdown {
      margin-top: 10px;
    }
    .mobile-dropdown .dropdown-toggle {
      display: block;
      color: #fff;
      text-decoration: none;
      font-weight: bold;
      font-size: 20px;
      padding: 16px 0;
      border-bottom: none;
      border-top: none;
      transition: color 0.2s;
      text-align: center;
    }
    .mobile-dropdown .dropdown-toggle:hover {
      color: #ffe066;
    }
    .mobile-dropdown .dropdown-toggle.active {
      color: #ffe066;
      text-shadow: 0 0 8px rgba(255, 224, 102, 0.5);
    }
    .mobile-dropdown-content {
      display: none;
      padding-left: 0;
      margin-top: 10px;
    }
    .mobile-dropdown-content.active {
      display: block;
    }
    .mobile-dropdown-content a {
      display: block;
      color: #ccc;
      text-decoration: none;
      font-size: 18px;
      padding: 12px 0;
      border-bottom: none;
      border-top: none;
      transition: color 0.2s;
      text-align: center;
    }
    .mobile-dropdown-content a:hover {
      color: #ffe066;
    }
    .mobile-dropdown-content a.active {
      color: #ffe066;
      text-shadow: 0 0 8px rgba(255, 224, 102, 0.5);
    }
    @media (min-width: 1501px) {
      .burger-menu {
        display: none;
      }
      .nav {
        display: flex;
      }
      .mobile-nav {
        display: none !important;
      }
      .mobile-auth-section {
        display: none !important;
      }
    }
    .download-banner {
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      color: #fff;
      border: 1px solid rgba(255, 255, 255, 0.18);
      border-radius: 20px;
      font-size: 16px;
      font-weight: bold;
      padding: 8px 12px;
      cursor: pointer;
      transition: all 0.3s ease;
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 8px;
      text-shadow: 1px 1px rgba(0,0,0,0.3);
      box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    }
    .download-banner:hover {
      background: rgba(255, 255, 255, 0.15);
    }
    .download-icon {
      width: 20px;
      height: 20px;
      animation: characterBounce 3s ease-in-out infinite;
    }
    @keyframes characterBounce {
      0%, 100% {
        transform: translateY(0) rotate(0deg);
      }
      25% {
        transform: translateY(-3px) rotate(-5deg);
      }
      50% {
        transform: translateY(0) rotate(0deg);
      }
      75% {
        transform: translateY(-3px) rotate(5deg);
      }
    }
    .download-banner:hover .download-icon {
      animation: characterExcited 1s ease-in-out infinite;
    }
    @keyframes characterExcited {
      0%, 100% {
        transform: translateY(0) rotate(0deg);
      }
      25% {
        transform: translateY(-3px) rotate(-5deg);
      }
      50% {
        transform: translateY(0) rotate(0deg);
      }
      75% {
        transform: translateY(-3px) rotate(5deg);
      }
    }
    .header-right {
      display: flex;
      align-items: center;
      gap: 15px;
      flex-shrink: 1;
      min-width: 0;
    }
.ale-btn {
  background: linear-gradient(135deg, #3390ec 0%, #1f4f89 100%);
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(51, 144, 236, 0.35);
  text-decoration: none;
  text-shadow: 1px 1px rgba(0,0,0,0.25);
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  transition: transform 0.1s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.ale-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}
.ale-btn:active {
  transform: translateY(1px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}
    .nav {
      display: flex;
      align-items: center;
      gap: 20px;
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
    }
.alert-home {
  position: absolute;
  left: calc(50% - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255, 99, 99, 0.35);
  background: linear-gradient(135deg, #5a0f0f 0%, #2d0a0a 100%);
  color: #ffd7d7;
  font-weight: 900;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.alert-home:hover {
  filter: brightness(1.1);
  box-shadow: 0 8px 22px rgba(0,0,0,0.3);
}
.alert-home:active {
  transform: translateY(1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
    .profile-block {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 120px;
      cursor: pointer;
      padding: 4px 8px;
      border-radius: 12px;
      transition: background 0.2s;
      position: relative; 
    }
    #profile-block-auth {
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      border: 1px solid rgba(255, 255, 255, 0.18);
      border-radius: 20px;
      box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
      padding: 4px 12px;
      padding-right: 12px;
      padding-left: 8px;
      gap: 8px;
    }
    .profile-separator {
        display: none; 
    }
    .profile-block:hover {
        background: rgba(255,255,255,0.1);
    }
    #profile-block-auth:hover {
        background: rgba(255, 255, 255, 0.15);
    }
    .user-badge {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .header-avatar-img {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid rgba(255,255,255,0.2);
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }
    .header-capsule {
        display: none;
        align-items: center;
        gap: 4px;
        font-size: 16px;
        color: #FFD700;
        margin-left: 0px;
        padding-left: 6px;
        border-left: 1px solid rgba(255,255,255,0.25);
    }
    .header-capsule img:not(.header-capsule-badge) {
        width: 16px;
        height: 16px;
        object-fit: contain;
        flex-shrink: 0;
    }
    .header-capsule-badges {
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }
    .header-capsule-badge {
      width: 20px;
      height: 20px;
      object-fit: contain;
      border-radius: 3px;
    }
    .header-capsule-level {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      color: #8fd3ff;
      font-weight: 700;
      font-size: 14px;
    }
    .dropdown-header-info {
        padding: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 6px;
    }
    .dropdown-user-role {
        font-size: 11px;
        font-weight: bold;
        text-transform: uppercase;
        color: #aaa;
        margin-bottom: 2px;
    }
    .dropdown-user-uid {
      font-size: 12px;
      color: #c2bdbd;
      font-family: inherit;
    }
    .role-admin { color: #ff5252; }
    .role-banned { color: #ff5252; }
    .role-premium { color: #ffd700; }
    .role-subscription { color: #e040fb; }
    .role-booster { background: linear-gradient(135deg, #ff73fa, #b97eff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
    .role-old { color: #9575cd; }
    .profile-dropdown {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 0; 
        width: 260px;
        background: rgba(30, 30, 30, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 16px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.5);
        padding: 8px;
        z-index: 10001;
        transform-origin: top left; 
        animation: dropdownFadeIn 0.2s ease-out;
        cursor: default;
        max-height: 80vh;
        overflow-y: auto;
    }
      #profile-block-auth {
        overflow: visible;
      }
      #quickSwitchContainer {
        max-height: min(38vh, 260px);
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: thin;
      }
    @media (max-width: 1400px) {
         .profile-dropdown {
             right: 0; 
             left: auto;
         }
    }
    .profile-dropdown.active {
        display: block;
    }
    @keyframes dropdownFadeIn {
        from { opacity: 0; transform: scale(0.95) translateY(-10px); }
        to { opacity: 1; transform: scale(1) translateY(0); }
    }
    .profile-dropdown-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 12px;
        color: #fff;
        text-decoration: none;
        border-radius: 10px;
        transition: all 0.2s;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
    }
    .profile-dropdown-item:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    .profile-dropdown-item i {
        width: 20px;
        text-align: center;
        color: #ccc;
        font-size: 14px;
    }
    .profile-dropdown-icon {
        width: 20px;
        height: 20px;
        object-fit: contain;
        flex-shrink: 0;
    }
    .profile-dropdown-divider {
        height: 1px;
        background: rgba(255, 255, 255, 0.1);
        margin: 6px 0;
    }
    .quick-switch-label {
        font-size: 11px;
        text-transform: uppercase;
        color: #888;
        font-weight: bold;
        padding: 8px 12px 4px 12px;
        letter-spacing: 0.5px;
    }
    .quick-switch-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 12px;
        border-radius: 10px;
        cursor: pointer;
        transition: background 0.2s;
    }
    .quick-switch-item:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    .quick-switch-item img {
        width: 24px;
        height: 24px;
        border-radius: 6px;
        object-fit: cover;
    }
    .quick-switch-info {
        flex: 1;
        overflow: hidden;
    }
    .quick-switch-name {
        font-size: 13px;
        color: #fff;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .quick-switch-uid {
        font-size: 10px;
        color: #aaa;
    }
    .logout-item {
        color: #ff6b6b;
    }
    .logout-item:hover {
        background: rgba(255, 107, 107, 0.15);
        color: #ff5252;
    }
    .logout-item i {
        color: #ff6b6b;
    }
    .quick-switch-loading {
        padding: 10px;
        text-align: center;
        font-size: 12px;
        color: #888;
    }
    .user-btn.guest-login-btn {
        background: linear-gradient(135deg, #0088cc 0%, #006699 100%); 
        border: 1px solid rgba(0,136,204,0.4);
        box-shadow: 0 4px 15px rgba(0, 136, 204, 0.2);
        text-shadow: 1px 1px rgba(0,0,0,0.2);
    }
    .user-btn.guest-login-btn:hover {
        background: linear-gradient(135deg, #0099dd 0%, #0077aa 100%);
        box-shadow: 0 6px 20px rgba(0, 136, 204, 0.3);
    }
    .header-badge-icon {
        width: 32px;
        height: 32px;
        object-fit: contain;
    }
    .header-badge-icon.grayscale {
        filter: grayscale(100%);
        opacity: 0.7;
    }
    .user-info {
      display: flex;
      flex-direction: column;
      gap: 2px;
      margin-left: -2px;
    }
    .user-id {
      font-size: 14px;
      font-weight: bold;
      color: #fff;
      text-shadow: 1px 1px 2px #19769d;
      line-height: 1.2;
    }
    .user-signature {
      font-size: 12px;
      color: #fff;
      font-family: inherit;
      line-height: 1;
    }
    .shield {
      position: relative;
      width: 40px;
      height: 40px;
      background-image: url('/assets/others/3_defense.png');
      background-size: contain;
      background-repeat: no-repeat;
      background-position: center;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .shield.guest {
      opacity: 0.7;
      filter: grayscale(50%);
    }
    .level {
      position: absolute;
      color: #fff;
      font-weight: bold;
      font-size: 14px;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      text-shadow: 1px 1px 2px #19769d;
      pointer-events: none;
    }
    .username {
      font-size: 18px;
      font-weight: bold;
      color: #fff;
      text-shadow: 1px 1px rgba(0,0,0,0.3);
      margin-right: 0;
    }
    .progress-bar {
      width: 80px;
      height: 12px;
      background: #222d35;
      border-radius: 4px;
      overflow: hidden;
      margin-left: 1px;
      margin-right: 1px;
    }
    .progress {
      height: 100%;
      background: linear-gradient(90deg, #96e665, #5cb935);
    }
    .user-btn, .logout-btn {
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      color: #fff;
      border: 1px solid rgba(255, 255, 255, 0.18);
      border-radius: 20px;
      font-size: 18px;
      font-weight: bold;
      padding: 8px 16px;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    }
    .user-btn:hover, .logout-btn:hover {
      background: rgba(255, 255, 255, 0.15);
    }
    .nav {
      display: flex;
      gap: 0;
      flex: 1 1 auto;
      justify-content: center;
      align-items: center;
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      border: 1px solid rgba(255, 255, 255, 0.18);
      border-radius: 18px;
      padding: 0;
      overflow: visible;
    }
    .nav a {
      color: transparent;
      background: linear-gradient(90deg, #ffffff 0%, #fffef5 25%, #ffffff 50%, #f5f9fc 75%, #ffffff 100%);
      background-size: 300% 100%;
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      text-decoration: none;
      font-weight: bold;
      font-size: 16px;
      transition: all 0.3s ease;
      padding: 8px 16px;
      animation: gradientTextFlow 8s ease-in-out infinite;
      text-shadow: none;
    }
    .nav a:not(:last-child) {
      border-right: 1px solid rgba(255, 255, 255, 0.18);
    }
    .nav a:hover {
      background: linear-gradient(90deg, #ffffff 0%, #fffef5 25%, #ffffff 50%, #f5f9fc 75%, #ffffff 100%);
      background-size: 300% 100%;
      -webkit-background-clip: text;
      background-clip: text;
      filter: brightness(1.1);
    }
    .nav a.active {
      background: rgba(255, 255, 255, 0.15);
      -webkit-background-clip: border-box;
      background-clip: border-box;
      -webkit-text-fill-color: #ffffffff;
      color: #5e5d5dff;
      border: 1px solid rgba(211, 210, 210, 0.5);
      border-radius: 8px;
      text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    .nav a.active:not(:last-child) {
      box-shadow:
        1px 0 0 rgba(255, 255, 255, 0.18),
        0 4px 15px rgba(0, 0, 0, 0.2);
    }
    .nav a.nav-search-link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: linear-gradient(90deg, #8fd3ff 0%, #ffffff 40%, #4fc3f7 70%, #8fd3ff 100%);
      background-size: 220% 100%;
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      color: #8fd3ff;
      animation: gradientTextFlow 5s ease-in-out infinite;
      text-shadow: 0 0 10px rgba(79, 195, 247, 0.3);
    }
    .nav a.nav-search-link:hover {
      background: linear-gradient(90deg, #bde6ff 0%, #ffffff 45%, #70d4ff 100%);
      background-size: 220% 100%;
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      color: #bde6ff;
      box-shadow: none;
      filter: brightness(1.08);
    }
    .nav a.nav-search-link.active {
      background: rgba(255, 255, 255, 0.15);
      -webkit-background-clip: border-box;
      background-clip: border-box;
      -webkit-text-fill-color: #ffffffff;
      color: #5e5d5dff;
      border: 1px solid rgba(211, 210, 210, 0.5);
      border-radius: 8px;
      text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
      box-shadow:
        1px 0 0 rgba(255, 255, 255, 0.18),
        0 4px 15px rgba(0, 0, 0, 0.2);
      animation: gradientTextFlow 5s ease-in-out infinite;
      filter: none;
    }
    .nav a.admin-nav-link,
    .nav a.admin-nav-link:hover {
      background: none;
      -webkit-background-clip: border-box;
      background-clip: border-box;
      -webkit-text-fill-color: #ff8a8a;
      color: #ff8a8a;
      text-shadow: 0 0 8px rgba(255, 138, 138, 0.24);
    }
    .nav a.admin-nav-link.active {
      background: rgba(255, 138, 138, 0.14);
      -webkit-background-clip: border-box;
      background-clip: border-box;
      -webkit-text-fill-color: #ff9b9b;
      color: #ff9b9b;
      border-color: rgba(255, 138, 138, 0.2);
      text-shadow: 0 0 8px rgba(255, 138, 138, 0.35);
      filter: none;
    }
    .nav > a:first-child.active {
      border-radius: 17px 8px 8px 17px;
    }
    .nav > a:last-child.active {
      border-radius: 8px 17px 17px 8px;
    }
    .nav a.nav-disabled {
      color: #888 !important;
      background: none !important;
      -webkit-background-clip: unset !important;
      background-clip: unset !important;
      -webkit-text-fill-color: #888 !important;
      opacity: 0.5;
      cursor: not-allowed;
      pointer-events: none;
      animation: none !important;
    }
    .nav a.nav-disabled:hover {
      filter: none !important;
      background: none !important;
    }
    .cheat-link {
      background: linear-gradient(90deg, #87CEEB, #00BFFF, #1E90FF, #4169E1, #87CEEB) !important;
      background-size: 200% 100% !important;
      -webkit-background-clip: text !important;
      -webkit-text-fill-color: transparent !important;
      background-clip: text !important;
      animation: cheatGradient 3s ease-in-out infinite !important;
      display: inline-block;
    }
    .cheat-link:hover,
    .cheat-link.active {
      background: linear-gradient(90deg, #87CEEB, #00BFFF, #1E90FF, #4169E1, #87CEEB) !important;
      background-size: 200% 100% !important;
      -webkit-background-clip: text !important;
      -webkit-text-fill-color: transparent !important;
      background-clip: text !important;
      animation: cheatGradient 3s ease-in-out infinite !important;
      filter: brightness(1.1) !important;
    }
    .blue-gradient {
      background: linear-gradient(90deg, #87CEEB, #00BFFF, #1E90FF, #4169E1, #87CEEB) !important;
      background-size: 200% 100% !important;
      -webkit-background-clip: text !important;
      -webkit-text-fill-color: transparent !important;
      background-clip: text !important;
      animation: blueGradient 3s ease-in-out infinite !important;
      display: inline-block;
    }
    .blue-gradient:hover,
    .blue-gradient.active {
      background: linear-gradient(90deg, #87CEEB, #00BFFF, #1E90FF, #4169E1, #87CEEB) !important;
      background-size: 200% 100% !important;
      -webkit-background-clip: text !important;
      -webkit-text-fill-color: transparent !important;
      background-clip: text !important;
      animation: blueGradient 3s ease-in-out infinite !important;
      filter: brightness(1.1) !important;
    }
    @keyframes cheatGradient {
      0%, 100% {
        background-position: 0% 50%;
      }
      50% {
        background-position: 100% 50%;
      }
    }
    @keyframes gradientFlow {
      0%, 100% {
        background-position: 0% 50%;
      }
      50% {
        background-position: 100% 50%;
      }
    }
    @keyframes gradientText {
      0% {
        background-position: 0% 50%;
      }
      100% {
        background-position: 300% 50%;
      }
    }
    @keyframes gradientTextFlow {
      0%, 100% {
        background-position: 0% 50%;
      }
      50% {
        background-position: 100% 50%;
      }
    }
    @keyframes colorShift {
      0%, 100% {
        filter: drop-shadow(0 0 8px rgba(150, 230, 101, 0.6)) 
                drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.3))
                drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.2))
                drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.1))
                hue-rotate(0deg);
      }
      25% {
        filter: drop-shadow(0 0 10px rgba(101, 230, 230, 0.6)) 
                drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.3))
                drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.2))
                drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.1))
                hue-rotate(60deg);
      }
      50% {
        filter: drop-shadow(0 0 10px rgba(230, 230, 101, 0.6)) 
                drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.3))
                drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.2))
                drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.1))
                hue-rotate(120deg);
      }
      75% {
        filter: drop-shadow(0 0 10px rgba(230, 150, 101, 0.6)) 
                drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.3))
                drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.2))
                drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.1))
                hue-rotate(180deg);
      }
    }
    .dropdown {
      position: relative;
      display: inline-block;
      vertical-align: top;
    }
    .dropdown-toggle {
      cursor: pointer;
      color: #fff;
      text-decoration: none;
      font-weight: bold;
      font-size: 16px;
      padding: 3px 0;
      transition: color 0.2s;
      display: inline-block;
      vertical-align: baseline;
    }
    .dropdown-content {
      display: none;
      position: absolute;
      background-color: #1a1a1a;
      min-width: 160px;
      box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
      z-index: 10001;
      border-radius: 6px;
      border: 1px solid rgba(255,255,255,0.2);
      top: 100%;
      left: 0;
    }
    .dropdown-content a {
      color: #fff;
      padding: 8px 12px;
      text-decoration: none;
      display: block;
      font-size: 14px;
      transition: background-color 0.2s;
    }
    .dropdown-content a:hover {
      background-color: rgba(255,255,255,0.1);
      color: #ffe066;
    }
    .dropdown-content a.active {
      background-color: rgba(255, 224, 102, 0.2);
      color: #ffe066;
      text-shadow: 0 0 8px rgba(255, 224, 102, 0.5);
    }
    .dropdown:hover .dropdown-content {
      display: block;
    }
    .dropdown:hover .dropdown-toggle {
      color: #ffe066;
    }
    .dropdown-toggle.active {
      color: #ffe066;
      text-shadow: 0 0 8px rgba(255, 224, 102, 0.5);
    }
    .wiki-coming-soon {
      position: relative;
      display: inline-block;
      padding: 3px 0;
      margin-right: 15px;
    }
    .wiki-disabled {
      color: #888;
      font-size: 16px;
      font-weight: bold;
      cursor: default;
      opacity: 0.7;
    }
    .coming-soon-badge {
      position: absolute;
      bottom: -1px;
      right: -20px;
      background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
      color: white;
      padding: 2px 5px;
      font-size: 8px;
      font-weight: bold;
      border-radius: 2px;
      transform: rotate(-12deg);
      box-shadow: 0 2px 4px rgba(0,0,0,0.3), 0 0 10px rgba(255, 68, 68, 0.5);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      animation: pulse-badge 2s infinite;
      border: 1px solid rgba(255,255,255,0.2);
    }
    @keyframes pulse-badge {
      0%, 100% {
        box-shadow: 0 2px 4px rgba(0,0,0,0.3), 0 0 10px rgba(255, 68, 68, 0.5);
      }
      50% {
        box-shadow: 0 2px 4px rgba(0,0,0,0.3), 0 0 20px rgba(255, 68, 68, 0.8);
      }
    }
    .header * {
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;
    }
    .indicators-wrapper {
      display: flex;
      gap: 0;
      align-items: center;
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      border: 1px solid rgba(255, 255, 255, 0.18);
      border-radius: 18px;
      padding: 0;
      overflow: hidden;
    }
    .friends-indicator {
      display: flex;
      align-items: center;
      justify-content: center;
      background: transparent;
      border: none;
      padding: 4px 9px 4px 4px;
      margin: 0;
      cursor: pointer;
      transition: all 0.3s ease;
      width: 31px;
      height: 28px;
      position: relative;
      overflow: hidden;
      box-shadow: none;
    }
    .friends-indicator:not(:last-child) {
      border-right: 1px solid rgba(255, 255, 255, 0.18);
    }
    .friends-indicator:hover {
      background: rgba(255, 255, 255, 0.15);
    }
    .friends-indicator.active {
      background: rgba(255, 255, 255, 0.15);
    }
    .friends-indicator.disabled {
      opacity: 0.3;
      pointer-events: none;
      cursor: not-allowed;
      filter: grayscale(100%);
    }
    .friends-icon {
      width: 22px;
      height: 22px;
    }
    .friends-count {
      color: rgb(181, 255, 124);
      font-weight: bold;
      font-size: 18px;
      margin-left: 4px;
      font-family: monospace;
      text-shadow: 0 0 4px rgba(76, 175, 80, 0.5);
    }
    .notifications-indicator {
      display: flex;
      align-items: center;
      justify-content: center;
      background: transparent;
      border: none;
      padding: 4px 8px;
      margin: 0;
      cursor: pointer;
      transition: all 0.3s ease;
      width: 42px;
      align-self: stretch;
      min-height: 28px;
      position: relative;
      overflow: hidden;
      box-shadow: none;
      box-sizing: border-box;
      appearance: none;
      -webkit-appearance: none;
      line-height: 0;
      margin: 0 !important;
      top: 0 !important;
      transform: none !important;
      vertical-align: middle;
    }
    .notifications-indicator:hover {
      background: rgba(255, 255, 255, 0.15);
    }
    .notifications-indicator.active {
      background: rgba(255, 255, 255, 0.15);
    }
    .notifications-icon {
      width: 25px;
      height: 25px;
      display: block;
      margin: 0;
      object-fit: contain;
      opacity: 0.95;
      transform: translateY(0);
      position: relative;
      top: 0 !important;
      vertical-align: middle;
      transition: filter 0.2s ease, opacity 0.2s ease;
    }
    .notifications-badge {
      display: none;
      align-items: center;
      justify-content: center;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      min-width: 24px;
      height: 24px;
      padding: 0 4px;
      box-sizing: border-box;
      border-radius: 999px;
      background: #d41f28;
      color: #fff;
      font-size: 12px;
      font-weight: 700;
      line-height: 1;
      box-shadow: 0 0 0 2px rgba(20, 28, 38, 0.55);
      pointer-events: none;
      z-index: 2;
    }
    .notifications-indicator:hover .notifications-icon,
    .notifications-indicator.active .notifications-icon {
      opacity: 1;
      filter: drop-shadow(0 0 8px rgba(255, 217, 114, 0.35));
    }
    .notifications-indicator.has-unread .notifications-icon {
      animation: notificationsUnreadIconBlink 1.35s ease-in-out infinite;
    }
    .notifications-indicator.has-unread .notifications-badge {
      display: flex;
      border: 1px solid rgba(255, 255, 255, 0.95);
      animation: notificationsUnreadBadgeBlink 1.35s ease-in-out infinite;
    }
    @keyframes notificationsUnreadIconBlink {
      0%, 100% {
        opacity: 1;
      }
      50% {
        opacity: 0;
      }
    }
    @keyframes notificationsUnreadBadgeBlink {
      0%, 100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.96);
      }
      50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
      }
    }
    .notifications-modal {
      position: fixed;
      inset: 0;
      display: none;
      align-items: flex-start;
      justify-content: flex-end;
      padding: 68px 18px 18px 18px;
      background: transparent;
      z-index: 10020;
      box-sizing: border-box;
      pointer-events: none;
    }
    .notifications-modal.active {
      display: flex;
      pointer-events: auto;
    }
    .notifications-modal-content {
      position: relative;
      width: min(390px, calc(100vw - 24px));
      padding: 20px 18px 16px 18px;
      border-radius: 16px;
      background: rgba(30, 30, 30, 0.95);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border: 1px solid rgba(255, 255, 255, 0.15);
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
      color: #fff;
      text-align: left;
      transform-origin: top right;
    }
    .notifications-modal.active .notifications-modal-content {
      animation: notificationsPopupIn 0.22s ease-out;
    }
    @keyframes notificationsPopupIn {
      from {
        opacity: 0;
        transform: translateY(-12px) scale(0.98);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }
    .notifications-modal-header-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 10px;
      gap: 10px;
    }
    .notifications-modal-title {
      font-size: 20px;
      font-weight: 700;
    }
    .notifications-modal-actions {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-shrink: 0;
    }
    .notifications-modal-close {
      width: 30px;
      height: 30px;
      border: none;
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.06);
      color: #fff;
      font-size: 22px;
      line-height: 1;
      cursor: pointer;
      transition: background 0.2s ease;
      flex-shrink: 0;
    }
    .notifications-modal-close:hover {
      background: rgba(255, 255, 255, 0.12);
    }
    .notifications-clear-all {
      display: none;
      background: rgba(244, 67, 54, 0.1);
      border: 1px solid rgba(244, 67, 54, 0.25);
      border-radius: 8px;
      color: #ff7b7b;
      font-size: 11px;
      font-weight: 700;
      padding: 4px 10px;
      cursor: pointer;
      transition: background 0.15s;
      white-space: nowrap;
    }
    .notifications-clear-all:hover {
      background: rgba(244, 67, 54, 0.2);
    }
    .notifications-modal-empty {
      padding: 12px 10px;
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.12);
      color: #ddd;
      font-size: 14px;
      line-height: 1.35;
    }
    .notifications-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
      max-height: min(58vh, 420px);
      overflow-y: auto;
      overflow-x: hidden;
      margin-bottom: 8px;
      margin-right: -6px;
      padding-right: 6px;
      box-sizing: border-box;
      scrollbar-width: thin;
      scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
    }
    .notifications-list::-webkit-scrollbar {
      width: 10px;
    }
    .notifications-list::-webkit-scrollbar-track {
      background: transparent;
      border-radius: 999px;
    }
    .notifications-list::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.2);
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      min-height: 36px;
    }
    .notifications-list::-webkit-scrollbar-thumb:hover {
      background: rgba(255, 255, 255, 0.3);
    }
    .notif-toast-container {
      position: fixed;
      top: 68px;
      right: 18px;
      z-index: 10010;
      display: flex;
      flex-direction: column;
      gap: 8px;
      align-items: flex-end;
      pointer-events: none;
      opacity: 1;
      transform: translateY(0);
      transition: opacity 0.16s ease, transform 0.16s ease;
    }
    body.notifications-center-open .notif-toast-container {
      opacity: 0;
      transform: translateY(-8px);
      pointer-events: none;
    }
    .notif-toast {
      width: min(360px, calc(100vw - 36px));
      background: linear-gradient(135deg, rgba(36, 36, 36, 0.98) 0%, rgba(24, 24, 24, 0.98) 100%);
      backdrop-filter: blur(24px);
      -webkit-backdrop-filter: blur(24px);
      border: 1px solid rgba(255, 255, 255, 0.14);
      border-radius: 16px;
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.07);
      padding: 11px 12px 11px 13px;
      display: flex;
      gap: 11px;
      align-items: center;
      pointer-events: auto;
      transform: translateX(calc(100% + 24px));
      opacity: 0;
      transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
    }
    .notif-toast.notif-toast--in {
      transform: translateX(0);
      opacity: 1;
    }
    .notif-toast.notif-toast--out {
      transform: translateX(calc(100% + 24px));
      opacity: 0;
    }
    .notif-toast-icon {
      width: 38px;
      height: 38px;
      object-fit: cover;
      border-radius: 9px;
      flex-shrink: 0;
      border: 1px solid rgba(255, 255, 255, 0.12);
      background: rgba(0, 0, 0, 0.35);
    }
    .notif-toast-body {
      min-width: 0;
      flex: 1;
    }
    .notif-toast-title {
      font-size: 13px;
      font-weight: 700;
      color: #fff;
      margin-bottom: 3px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      text-shadow: 1px 1px rgba(0, 0, 0, 0.4);
    }
    .notif-toast-message {
      font-size: 12px;
      color: #c8c8c8;
      line-height: 1.4;
      font-weight: normal;
      text-shadow: none;
      overflow-wrap: anywhere;
      word-break: break-word;
    }
    .notif-toast-close {
      flex-shrink: 0;
      align-self: flex-start;
      background: none;
      border: none;
      color: rgba(255, 255, 255, 0.35);
      font-size: 34px;
      line-height: 1;
      cursor: pointer;
      padding: 0 0 0 6px;
      transition: color 0.15s;
    }
    .notif-toast-close:hover {
      color: rgba(255, 255, 255, 0.85);
    }
    .notification-item {
      display: flex;
      gap: 10px;
      align-items: center;
      padding: 10px;
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(255, 255, 255, 0.12);
    }
    .notification-item.unread {
      border-color: rgba(255, 255, 255, 0.25);
      background: rgba(255, 255, 255, 0.1);
    }
    .notification-item-icon {
      width: 42px;
      height: 42px;
      max-width: 42px;
      max-height: 42px;
      object-fit: cover;
      border-radius: 8px;
      flex-shrink: 0;
      border: 1px solid rgba(255, 255, 255, 0.14);
      background: rgba(0, 0, 0, 0.25);
    }
    .notification-item-content {
      min-width: 0;
      flex: 1;
    }
    .notification-item-title {
      font-size: 14px;
      font-weight: 700;
      color: #fff;
      margin-bottom: 4px;
      word-break: break-word;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .notification-item-count {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 20px;
      height: 20px;
      padding: 0 5px;
      border-radius: 10px;
      background: rgba(255,255,255,0.18);
      color: #fff;
      font-size: 11px;
      font-weight: 700;
      flex-shrink: 0;
    }
    .notification-item-message {
      font-size: 13px;
      color: #e5e5e5;
      line-height: 1.35;
      margin-bottom: 6px;
      word-break: break-word;
    }
    .notification-emoji-flag {
      width: 1em;
      height: 1em;
      display: inline-block;
      vertical-align: -0.15em;
      object-fit: contain;
    }
    .notification-item-meta {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
    }
    .notification-item-time {
      font-size: 11px;
      color: #b5b5b5;
    }
    .notification-item-link {
      font-size: 12px;
      color: #9dd1ff;
      text-decoration: none;
      white-space: nowrap;
    }
    .notification-item-link:hover {
      color: #c2e4ff;
      text-decoration: underline;
    }
    .notification-item-action {
      background: none;
      border: 1px solid rgba(255,255,255,0.15);
      border-radius: 6px;
      color: #aaa;
      line-height: 1;
      padding: 4px 6px;
      cursor: pointer;
      transition: background .15s, color .15s, border-color .15s;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .notification-item-read {
      font-size: 13px;
      color: #7bdb96;
      border-color: rgba(100,220,130,0.25);
    }
    .notification-item-read:hover {
      background: rgba(100,220,130,0.12);
      border-color: rgba(100,220,130,0.5);
      color: #a8ffc0;
    }
    .notification-item-delete {
      flex-shrink: 0;
      align-self: center;
      color: #c97878;
      border-color: rgba(200,100,100,0.2);
      padding: 6px 7px;
    }
    .notification-item-delete svg {
      width: 17px;
      height: 17px;
      display: block;
    }
    .notification-item-delete:hover {
      background: rgba(220,100,100,0.12);
      border-color: rgba(220,100,100,0.5);
      color: #ffa8a8;
    }
    .notification-item-action:disabled {
      opacity: .4;
      cursor: default;
    }
    .status-indicator {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      background: transparent;
      border: none;
      padding: 4px 8px 4px 4px;
      margin: 0;
      cursor: pointer;
      transition: all 0.3s ease;
      width: 35px;
      height: 28px;
      position: relative;
      overflow: hidden;
      box-shadow: none;
    }
    .status-indicator:not(:last-child) {
      border-right: 1px solid rgba(255, 255, 255, 0.18);
    }
    .status-indicator.error {
      animation: statusBlink 1s infinite;
    }
    @keyframes statusBlink {
      0%, 50% {
        background: transparent;
      }
      25%, 75% {
        background: rgba(255, 100, 100, 0.15);
      }
    }
    @keyframes blueGradient {
      0%, 100% {
        background-position: 0% 50%;
      }
      50% {
        background-position: 100% 50%;
      }
    }
    .status-indicator:hover {
      background: rgba(255, 255, 255, 0.15);
    }
    .status-indicator.active {
      background: rgba(255, 255, 255, 0.15);
    }
    .status-icon {
      width: 20px;
      height: 20px;
      flex-shrink: 0;
    }
    .status-indicator-icon {
      font-weight: bold;
      font-size: 16px;
      margin-left: 4px;
      font-family: monospace;
      opacity: 0;
      transition: opacity 0.3s ease;
    }
    .status-indicator.all-online .status-indicator-icon {
      color:rgb(152, 255, 156);
      text-shadow: 0 0 4px rgba(76, 175, 80, 0.5);
      opacity: 1;
      content: '✓';
    }
    .status-indicator.has-issues .status-indicator-icon {
      color:rgb(252, 112, 112);
      text-shadow: 0 0 4px rgba(255, 68, 68, 0.5);
      opacity: 1;
      content: '✗';
    }
    .events-indicator {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      background: transparent;
      border: none;
      padding: 4px 8px 4px 4px;
      margin: 0;
      cursor: pointer;
      transition: all 0.3s ease;
      width: 32px;
      height: 28px;
      position: relative;
      overflow: hidden;
      box-shadow: none;
    }
    .events-indicator:not(:last-child) {
      border-right: 1px solid rgba(255, 255, 255, 0.18);
    }
    .events-indicator:hover {
      background: rgba(255, 255, 255, 0.15);
    }
    .events-indicator.active {
      background: rgba(255, 255, 255, 0.15);
    }
    .events-icon {
      width: 20px;
      height: 20px;
      flex-shrink: 0;
    }
    .events-count {
      color:rgb(181, 255, 124);
      font-weight: bold;
      font-size: 18px;
      margin-left: 4px;
      font-family: monospace;
      text-shadow: 0 0 4px rgba(76, 175, 80, 0.5);
    }
    .discord-timestamp {
      background: rgba(114, 137, 218, 0.1);
      color: #7289da;
      padding: 2px 4px;
      border-radius: 3px;
      font-size: 0.9em;
      font-family: monospace;
    }
    .discord-channel {
      background: rgba(114, 137, 218, 0.1);
      color: #7289da;
      padding: 2px 4px;
      border-radius: 3px;
      font-size: 0.9em;
    }
    .event-item {
      background: rgba(0,0,0,0.2);
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 6px;
      padding: 10px;
      margin-bottom: 8px;
    }
    .event-item:last-child {
      margin-bottom: 0;
    }
    .event-header {
      font-weight: bold;
      color: #4CAF50;
      margin-bottom: 4px;
      font-size: 13px;
    }
    .event-time {
      font-size: 11px;
      color: #ccc;
      margin-bottom: 2px;
    }
    .event-time.urgent {
      color: #ff6b6b;
      font-weight: bold;
    }
    .event-coef {
      font-size: 11px;
      color: #FFD700;
      font-weight: bold;
    }
    .event-type {
      font-size: 10px;
      color: #4CAF50;
      font-weight: bold;
      margin-bottom: 2px;
      text-transform: uppercase;
    }
    .event-description {
      font-size: 11px;
      color: #ccc;
      margin: 4px 0;
      line-height: 1.3;
      font-style: italic;
    }
    .event-discount {
      font-size: 12px;
      color: #FFD700;
      font-weight: bold;
      margin: 4px 0;
      text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
    }
    .no-events {
      color: #ccc;
      text-align: center;
      font-size: 13px;
      padding: 20px;
    }
    .events-separator {
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
      margin: 12px 0;
    }
    .events-section-title {
      font-size: 12px;
      font-weight: bold;
      color: #4CAF50;
      text-transform: uppercase;
      margin: 0px 0 6px 0;
      padding: 4px 8px;
      background: rgba(76, 175, 80, 0.1);
      border-radius: 4px;
      border-left: 3px solid #4CAF50;
    }
.nav-item-dropdown {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      height: 100%;
    }
    .nav-item-dropdown > a {
        height: 100%;
        display: flex;
        align-items: center;
    }
    .dropdown-content {
      display: none;
      position: absolute;
      background: rgba(30, 30, 30, 0.95);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      min-width: 180px;
      box-shadow: 0 10px 40px rgba(0,0,0,0.5);
      z-index: 10001;
      border-radius: 16px;
      border: 1px solid rgba(255, 255, 255, 0.15);
      top: 100%;
      left: 50%;
      transform: translateX(-50%);
      margin-top: 0;
      padding: 6px;
      padding-top: 10px;
      overflow: visible;
      animation: navDropdownFadeIn 0.2s ease-out;
    }
    @media (min-width: 1501px) {
      .dropdown-content {
        margin-top: -1px;
        border-radius: 0 0 18px 18px;
        border-top: 1px solid rgba(255, 255, 255, 0.18);
        padding: 0;
        min-width: auto;
        width: 100%;
        background: rgba(30, 30, 30, 0.95);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-top: none;
        box-shadow: none;
      }
      .dropdown-content a {
        padding: 8px 16px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.18) !important;
        text-align: center !important;
        justify-content: center !important;
      }
      .dropdown-content a:last-child {
        border-bottom: none !important;
        border-radius: 0 0 18px 18px;
      }
    }
    @keyframes navDropdownFadeIn {
      from { opacity: 0; transform: translateX(-50%) translateY(-10px) scale(0.95); }
      to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
    }
    .dropdown-content::before {
      content: '';
      position: absolute;
      top: -20px; 
      left: 0;
      width: 100%;
      height: 20px;
      background: transparent;
    }
    .dropdown-content a {
      color: #fff !important;
      -webkit-text-fill-color: #fff !important;
      background: transparent !important;
      background-clip: border-box !important;
      -webkit-background-clip: border-box !important;
      padding: 10px 12px;
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 14px;
      font-weight: 500;
      border-radius: 10px;
      margin: 2px 0;
      transition: all 0.2s;
      white-space: nowrap;
      text-align: left;
      border: none !important;
      text-shadow: none !important;
      animation: none !important;
    }
    .dropdown-content a:hover {
      background: rgba(255, 255, 255, 0.1) !important;
      color: #ffe066 !important;
      -webkit-text-fill-color: #ffe066 !important;
      text-shadow: 0 0 8px rgba(255, 224, 102, 0.5) !important;
    }
    .nav-item-dropdown:hover .dropdown-content {
      display: block;
    }
      .mobile-auth-section {
        display: none !important;
      }
      #mobileNavLinks {
        overflow-y: auto;
        min-height: 0;
      }
      #mobileNavLinks a {
        border-bottom: none !important;
        border-top: none !important;
        border-left: none !important;
        border-right: none !important;
      }
    .mobile-auth-btn {
      width: 100%;
      background: rgba(51, 144, 236, 0.15);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      color: #fff;
      border: 1px solid rgba(51, 144, 236, 0.3);
      border-radius: 20px;
      font-size: 16px;
      font-weight: bold;
      padding: 10px 16px;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    }
    .mobile-auth-btn:hover {
      background: rgba(255, 255, 255, 0.15);
    }
    .mobile-user-info {
      display: flex;
      flex-direction: column;
      gap: 8px;
      align-items: center;
    }
    .mobile-user-id {
      font-size: 14px;
      font-weight: bold;
      color: #fff;
      text-align: center;
      padding: 4px;
      text-shadow: 1px 1px 2px #19769d;
    }
    .mobile-logout-btn {
      width: 100%;
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      color: #fff;
      border: 1px solid rgba(255, 255, 255, 0.18);
      border-radius: 20px;
      font-size: 16px;
      font-weight: bold;
      padding: 10px 16px;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    }
    .mobile-logout-btn:hover {
      background: rgba(255, 255, 255, 0.15);
    }
    @media (max-width: 1500px) {
      .burger-menu {
        display: flex;
        z-index: 10002;
      }
      .nav {
        display: none;
      }
      .header-inner {
        justify-content: space-between;
      }
      .header-right {
        margin-left: 0;
      }
      .mobile-nav {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: min(360px, 88vw);
        height: 100vh;
        background: linear-gradient(180deg, #1b2633 0%, #121a24 100%);
        border-right: 1px solid rgba(255,255,255,0.12);
        border-radius: 0;
        border-top: none;
        padding: 84px 16px 18px 16px;
        transform: translateX(-100%);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
        z-index: 99999;
        box-shadow: 18px 0 48px rgba(0,0,0,0.45);
        visibility: hidden;
        opacity: 0;
        overflow-y: auto;
        overflow-x: hidden;
        pointer-events: none;
      }
      .mobile-nav.active {
        transform: translateX(0);
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
      }
      .mobile-nav a {
        text-align: left;
        padding: 12px 14px;
        font-size: 16px;
        color: #e0e0e0;
        border-bottom: none;
        border-radius: 12px;
        transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
        margin-bottom: 4px;
        max-width: 100%;
        box-sizing: border-box;
      }
      .mobile-nav a:hover {
        background: rgba(255,255,255,0.07);
        color: #fff;
        transform: translateX(2px);
      }
      .mobile-nav a.active {
        background: rgba(51, 144, 236, 0.2);
        color: #9dd1ff;
        border-left: 3px solid #3390ec;
      }
      .mobile-nav a.nav-search-link {
        display: flex;
        align-items: center;
        gap: 8px;
        background: transparent;
        border: none !important;
        color: #8fd3ff;
        box-shadow: none;
        text-shadow: 0 0 10px rgba(79, 195, 247, 0.28);
      }
      .mobile-nav a.nav-search-link:hover {
        background: transparent;
        color: #bde6ff;
        border: none !important;
        text-shadow: 0 0 12px rgba(79, 195, 247, 0.45);
      }
      .mobile-nav a.nav-search-link.active {
        background: rgba(51, 144, 236, 0.2);
        color: #9dd1ff;
        border-left: 3px solid #3390ec !important;
        text-shadow: none;
      }
      .mobile-nav a.admin-nav-link,
      .mobile-nav a.admin-nav-link:hover {
        color: #ff8a8a;
      }
      .mobile-nav a.admin-nav-link.active {
        background: rgba(255, 138, 138, 0.16);
        color: #ff9b9b;
        border-left: 3px solid #ff8a8a;
      }
      .mobile-nav .mobile-dropdown {
        margin-top: 0;
      }
      .mobile-nav .dropdown-toggle {
        text-align: left;
        padding: 12px 14px;
        font-size: 16px;
        color: #e0e0e0;
        border-bottom: none;
        border-radius: 12px;
        transition: all 0.2s ease;
        cursor: pointer;
        display: block;
        font-weight: bold;
      }
      .mobile-nav .dropdown-toggle:hover {
        background: rgba(255,255,255,0.07);
        color: #fff;
      }
      .mobile-nav .dropdown-toggle.active {
        color: #ffe066;
      }
      .mobile-dropdown-content {
        padding: 6px 0 2px 14px;
        background: transparent;
      }
      .mobile-dropdown-content a {
        font-size: 14px;
        padding: 10px 12px;
        border-bottom: none;
      }
      .profile-block {
        display: flex;
      }
      .mobile-nav-user {
        display: flex;
        position: absolute;
        top: 18px;
        left: 16px;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: rgba(51, 144, 236, 0.12);
        border: 1px solid rgba(51, 144, 236, 0.25);
        color: #fff;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10;
        overflow: hidden;
      }
      .mobile-nav-user svg {
        width: 16px;
        height: 16px;
      }
      .mobile-nav .footer-inner {
        flex-direction: column !important;
        gap: 10px;
        text-align: center;
        padding: 20px;
        margin-top: auto;
      }
      .mobile-nav .footer-left {
        flex-direction: column !important;
        align-items: center !important;
        width: 100%;
      }
      .mobile-nav .footer-contact-btn {
        display: none !important;
      }
      .mobile-nav .footer-contact-link {
        display: none !important;
      }
      .mobile-nav .telegram-widget {
        display: none !important;
      }
      .mobile-nav .footer-links {
        flex-wrap: wrap !important;
        justify-content: center !important;
      }
      .mobile-nav-close {
        display: flex;
        position: absolute;
        top: 18px;
        right: 16px;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: rgba(51, 144, 236, 0.12);
        border: 1px solid rgba(51, 144, 236, 0.25);
        color: #fff;
        align-items: center;
        justify-content: center;
        cursor: pointer;
      }
      .mobile-nav-close svg {
        width: 16px;
        height: 16px;
      }
      #mobileNavLinks {
        margin-top: 12px;
        padding-top: 8px;
        border-top: 1px solid rgba(255,255,255,0.08);
        overflow-y: auto;
        overflow-x: hidden;
        min-height: 0;
        flex: 1 1 auto;
      }
      .mobile-nav-footer {
        overflow-x: hidden;
      }
    }
    @media (max-width: 768px) {
      .profile-block {
        display: none !important;
      }
      .header {
        padding: 8px 16px;
        background: #17212B;
        border-bottom: 1px solid rgba(255,255,255,0.08);
      }
      .header-inner {
        gap: 12px;
      }
      .header-left {
        gap: 12px;
      }
      .header-right {
        gap: 12px;
      }
      .ale-btn {
        font-size: 11px;
        padding: 6px 12px;
        background: rgba(51, 144, 236, 0.3);
        border: 1px solid rgba(51, 144, 236, 0.5);
        box-shadow: none;
        border-radius: 50px;
      }
      .ale-btn:hover {
        background: rgba(51, 144, 236, 0.4);
        box-shadow: none;
      }
      .ale-btn:active {
        transform: none;
        box-shadow: none;
      }
      .mobile-nav {
        width: auto !important;
        max-width: none !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        position: fixed !important;
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
        background: linear-gradient(180deg, #182332 0%, #111922 100%) !important;
        border: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
        z-index: 99999 !important;
        padding: 82px 14px 16px 14px;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        box-sizing: border-box;
        touch-action: pan-y !important;
        -webkit-overflow-scrolling: touch !important;
      }
      .mobile-nav.active {
        flex-direction: column;
        overflow-y: auto !important;
        touch-action: pan-y !important;
        -webkit-overflow-scrolling: touch !important;
      }
      html.menu-open,
      body.menu-open {
        overflow: hidden !important;
        touch-action: none !important;
      }
      .mobile-nav-close {
        position: absolute;
        top: 20px;
        right: 20px;
        background: rgba(51, 144, 236, 0.15);
        border: 1px solid rgba(51, 144, 236, 0.3);
        color: #fff;
        font-size: 24px;
        font-weight: bold;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
      }
      .mobile-nav-close:hover {
        background: rgba(51, 144, 236, 0.25);
        border-color: rgba(51, 144, 236, 0.4);
      }
      .mobile-nav-user {
        position: absolute;
        top: 20px;
        left: 20px;
        background: rgba(51, 144, 236, 0.15);
        border: 1px solid rgba(51, 144, 236, 0.3);
        color: #fff;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        z-index: 10;
        overflow: hidden;
      }
      .mobile-nav-user:hover {
        background: rgba(51, 144, 236, 0.25);
        border-color: rgba(51, 144, 236, 0.4);
      }
      .mobile-nav-user svg {
        width: 20px;
        height: 20px;
      }
      .mobile-nav-logo {
        position: absolute;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        justify-content: center;
        align-items: center;
        flex-shrink: 0;
      }
      .mobile-nav-logo img {
        max-width: 138px;
        max-height: 40px;
        width: auto;
        height: auto;
        object-fit: contain;
      }
      .mobile-nav-footer {
        margin-top: 10px;
        padding-top: 10px;
        border-top: none;
        flex-shrink: 0;
      }
      .mobile-nav-footer .footer {
        padding: 12px 0;
        margin: 0;
      }
      .mobile-nav-footer .footer-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
      }
      .mobile-nav-footer .footer-left,
      .mobile-nav-footer .footer-right {
        width: 100%;
      }
      .mobile-nav-footer .footer-contact-btn {
        display: none !important;
      }
      .header {
        z-index: 10000;
        position: sticky;
        top: 0;
      }
      .download-banner {
        display: none;
      }
      .burger-menu {
        background: rgba(30, 39, 50, 0.6);
        border: 1px solid rgba(51, 144, 236, 0.2);
        border-radius: 14px;
      }
      .burger-menu:hover {
        background: rgba(51, 144, 236, 0.15);
        border-color: rgba(51, 144, 236, 0.3);
      }
      .snow-toggle-wrapper {
        background: rgba(30, 39, 50, 0.6);
        border: 1px solid rgba(51, 144, 236, 0.2);
        border-radius: 14px;
        padding: 4px 6px;
        gap: 6px;
      }
      .snow-toggle-label {
        gap: 6px;
      }
      .snow-toggle-icon {
        font-size: 14px;
      }
      .snow-toggle-slider {
        width: 36px;
        height: 20px;
      }
      .snow-toggle-slider::before {
        width: 16px;
        height: 16px;
      }
      .snow-toggle:checked + .snow-toggle-slider::before {
        left: calc(100% - 18px);
      }
      .indicators-wrapper {
        background: rgba(30, 39, 50, 0.6);
        border: 1px solid rgba(51, 144, 236, 0.2);
        border-radius: 16px;
        overflow: hidden;
      }
      .status-indicator:hover,
      .events-indicator:hover,
      .friends-indicator:hover {
        background: rgba(51, 144, 236, 0.15);
      }
      .notifications-indicator:hover {
        background: rgba(51, 144, 236, 0.15);
      }
      .notifications-modal {
        padding: 60px 0 0 0;
        align-items: flex-end;
        justify-content: center;
        background: rgba(0, 0, 0, 0.55);
      }
      .notifications-modal-content {
        width: 100%;
        max-height: 80vh;
        border-radius: 24px 24px 0 0;
        border-bottom: none;
        border-left: none;
        border-right: none;
        background: rgba(23, 33, 43, 0.98);
        padding: 20px 16px 24px 16px;
        box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.5);
        display: flex;
        flex-direction: column;
      }
      .notifications-modal.active .notifications-modal-content {
        animation: notificationsSheetIn 0.26s ease-out;
      }
      @keyframes notificationsSheetIn {
        from { opacity: 0; transform: translateY(24px); }
        to   { opacity: 1; transform: translateY(0); }
      }
      .notifications-list {
        max-height: 55vh;
        margin-right: 0;
        padding-right: 0;
        gap: 8px;
      }
      .notification-item {
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.04);
        border: none;
        border-bottom: none;
        padding: 12px;
      }
      .notification-item:last-child {
        border-bottom: none;
      }
      .notification-item.unread {
        background: rgba(51, 144, 236, 0.1);
        border-bottom: none;
      }
      .notification-item-title {
        text-shadow: none;
        font-family: inherit;
      }
      .notification-item-message {
        text-shadow: none;
        font-family: inherit;
      }
      .notifications-modal-title {
        font-size: 17px;
        text-shadow: none;
        font-family: inherit;
      }
      .notif-toast-container {
        display: none;
      }
      .status-item {
        padding: 12px;
        gap: 10px;
        border-radius: 14px;
      }
      .status-item-name {
        font-size: 13px;
      }
      .status-item-details {
        font-size: 11px;
      }
      .event-item {
        padding: 10px;
        border-radius: 12px;
      }
      .event-header {
        font-size: 12px;
      }
      .event-time {
        font-size: 10px;
      }
      .auth-modal-content {
        width: 95%;
        max-width: 100%;
        margin: 10% auto;
        border-radius: 20px;
      }
      .help-modal-content {
        width: 95%;
        max-width: 100%;
        margin: 5% auto;
        border-radius: 20px;
      }
      .mobile-auth-btn,
      .mobile-logout-btn {
        background: rgba(51, 144, 236, 0.15);
        border: 1px solid rgba(51, 144, 236, 0.3);
        border-radius: 50px;
      }
      .mobile-auth-btn:hover,
      .mobile-logout-btn:hover {
        background: rgba(51, 144, 236, 0.25);
        border-color: rgba(51, 144, 236, 0.4);
      }
      .mobile-nav a {
        border-bottom: none;
        border-radius: 14px;
      }
      .mobile-nav a:hover {
        background: rgba(51, 144, 236, 0.16);
        color: #8ec8ff;
      }
      .mobile-nav a[href="/wow"] {
        display: none !important;
      }
      .profile-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 24px 24px 0 0;
        transform-origin: bottom;
        animation: slideUpMobile 0.3s ease-out;
        box-sizing: border-box;
        max-height: 80vh;
        overflow-y: auto;
        border-left: none;
        border-right: none;
        border-bottom: none;
      }
    }
    @keyframes slideUpMobile {
      from { transform: translateY(100%); }
      to { transform: translateY(0); }
    }
    @media (max-width: 480px) {
      .header {
        padding: 4px 10px;
      }
      .header-inner {
        gap: 10px;
      }
      .header-left {
        gap: 10px;
      }
      .header-right {
        gap: 8px;
      }
      .mobile-nav {
        left: 0;
        right: 0;
        width: auto;
        padding: 76px 12px 14px 12px;
      }
      .download-banner {
        display: none;
      }
      .notifications-indicator,
      .status-indicator,
      .events-indicator,
      .friends-indicator {
        width: auto;
        height: 28px;
        padding: 4px 7px;
        background: rgba(30, 39, 50, 0.6);
        border-radius: 12px;
        align-items: center;
        justify-content: center;
      }
      .notifications-indicator {
        margin: 0 !important;
        top: 0 !important;
        transform: none !important;
      }
      .notifications-indicator .notifications-icon {
        top: 0 !important;
        transform: none !important;
      }
      .status-indicator-icon,
      .events-count,
      .friends-count {
        font-size: 14px;
        margin-left: 4px;
        display: inline-block;
      }
      .notifications-icon,
      .status-icon,
      .events-icon,
      .friends-icon {
        width: 25px;
        height: 25px;
      }
      .notifications-badge {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
      }
      .connection-indicator {
        padding: 3px 4px;
        gap: 0;
      }
      .connection-icon {
        width: 16px;
        height: 16px;
      }
      .connection-text {
        display: none;
      }
    }
    .nickname-toggle-btn {
        display: none;
    }
    .guest-skin-anim {
      width: 44px;
      height: 44px;
      background-size: contain;
      background-repeat: no-repeat;
      background-position: center;
      transition: background-image 0.5s ease-in-out;
      opacity: 0.8;
      border-radius: 50%;
      background-color: rgba(255, 255, 255, 0.05);
    }
