html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  box-sizing: border-box;
}


.topbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  z-index: 9000;
  padding: 10px 0;
  box-shadow: 0 2px 10px rgba(255, 0, 0, 0.3);
  transition: background 0.5s cubic-bezier(0.4, 0.0, 0.2, 1), box-shadow 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Light mode navbar */
[data-theme="light"] .topbar {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 10px rgba(0, 128, 255, 0.3);
}

.topbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
}

.topbar li {
  position: relative;
}

.topbar li a {
  color: #ddfff7;
  text-decoration: none;
  font-family: 'Bangers', sans-serif;
  font-size: 1.8rem;
  transition: color 0.5s cubic-bezier(0.4, 0.0, 0.2, 1), text-shadow 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
  padding: 5px 10px;
}

.topbar li a:hover {
  color: #ff0000;
  text-shadow: 0 0 8px #ff0000;
}

/* Light mode navbar links */
[data-theme="light"] .topbar li a {
  color: #2c3e50;
}

[data-theme="light"] .topbar li a:hover {
  color: #0080ff;
  text-shadow: 0 0 8px #0080ff;
}

/* Commissions link styling */
.topbar li a.active {
  color: #ff2929;
  text-shadow: 0 0 8px #ff0000;
}

.topbar li a.active:hover {
  color: #ddfff7;
  text-shadow: 0 0 12px #ff4444;
}

/* Light mode active link styling */
[data-theme="light"] .topbar li a.active {
  color: #2793ff;
  text-shadow: 0 0 8px #66b3ff;
}

[data-theme="light"] .topbar li a.active:hover {
  color: #35c6ff;
  text-shadow: 0 0 2px #00a2ff;
}

/* Light mode dropdown styles */
[data-theme="light"] .dropdown-menu {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.92));
  border: 1px solid rgba(0, 128, 255, 0.4);
  box-shadow: 
    0 8px 25px rgba(0, 128, 255, 0.3),
    0 2px 10px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .dropdown-menu::before {
  border-bottom: 8px solid rgba(0, 128, 255, 0.4);
}

[data-theme="light"] .dropdown-menu::after {
  border-bottom: 7px solid rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .dropdown-menu a {
  color: #2c3e50;
}

[data-theme="light"] .dropdown-menu a::before {
  background: linear-gradient(90deg, transparent, rgba(0, 128, 255, 0.1), transparent);
}

[data-theme="light"] .dropdown-menu a:hover {
  color: #0080ff;
  text-shadow: 
    0 0 8px #0080ff,
    0 0 16px rgba(0, 128, 255, 0.5);
  background: rgba(0, 128, 255, 0.15);
  border-left: 2px solid #0080ff;
}

/* Dropdown Styles */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: linear-gradient(145deg, rgba(10, 0, 0, 0.95), rgba(20, 5, 5, 0.92));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 0, 0, 0.4);
  border-radius: 12px;
  box-shadow: 
    0 8px 25px rgba(255, 0, 0, 0.3),
    0 2px 10px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  min-width: 170px;
  padding: 12px 0;
  margin-top: 8px;
  overflow: hidden;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid rgba(255, 0, 0, 0.4);
}

.dropdown-menu::after {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid rgba(10, 0, 0, 0.95);
}

.dropdown-menu a {
  color: #ddfff7;
  text-decoration: none;
  font-family: 'Bangers', sans-serif;
  font-size: 1.4rem;
  padding: 12px 20px;
  display: block;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 8px;
  margin: 2px 8px;
  position: relative;
  overflow: hidden;
}

.dropdown-menu a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.1), transparent);
  transition: left 0.5s ease;
}

.dropdown-menu a:hover::before {
  left: 100%;
}

.dropdown-menu a:hover {
  color: #ff0000;
  text-shadow: 
    0 0 8px #ff0000,
    0 0 16px rgba(255, 0, 0, 0.5);
  background: rgba(255, 0, 0, 0.15);
  transform: translateX(3px);
  border-left: 2px solid #ff0000;
}

@media (max-width: 768px) {
  .topbar ul {
    gap: 7px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 8px;
  }
  .topbar li a {
    font-size: 1.1rem;
    padding: 6px 8px;
  }
  .topbar {
    padding: 7px 0;
  }
  .dropdown-menu a {
    font-size: 1rem;
    padding: 10px 16px;
  }
  .dropdown-menu {
    min-width: 120px;
    padding: 7px 0;
  }
  .dropdown-menu::before,
  .dropdown-menu::after {
    display: none;
  }
}

/* Extra mobile-friendly tweaks */
@media (max-width: 1024px) and (min-width: 769px) {
  .topbar ul {
    gap: 0.7rem;
    padding: 0 10px;
  }
  .topbar li a {
    font-size: 1.3rem;
    padding: 5px 7px;
  }
}
.topbar {
  padding: 4px 0;
  background: rgba(10,0,0,0.98);
}

/* Very small screens */
@media (max-width: 430px) {
  .topbar ul {
    gap: 4px;
  }
  .topbar li a {
    font-size: 0.95rem;
    padding: 4px 6px;
  }
  .dropdown-menu {
    min-width: 100px;
    padding: 6px 0;
  }
  .dropdown-menu a {
    font-size: 0.9rem;
    padding: 8px 12px;
  }
}