.site-topbar {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1280px;
  height: 67px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(20, 20, 20, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  z-index: 20;
}

.site-topbar-inner {
  position: relative;
  width: 1280px;
  height: 67px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px 0 0;
}

.site-hamburger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
}

.site-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

.site-brand {
  flex-shrink: 0;
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.site-brand .blue {
  color: #0079ff;
}

.site-nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  pointer-events: none;
}

.site-nav a {
  pointer-events: auto;
  color: #bab9b9;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: #fff;
}

.site-login-button {
  width: 144px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0062ff 0%, #004aff 100%);
  color: #fff;
  border: none;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(0, 74, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.site-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.site-login-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 74, 255, 0.45);
}

.site-login-button.user {
  width: auto;
  max-width: 240px;
  font-size: 16px;
  padding: 0 12px 0 8px;
  gap: 8px;
  justify-content: flex-start;
}

.site-login-avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  object-fit: cover;
  flex-shrink: 0;
}

.site-login-label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-user-menu {
  position: relative;
}

.site-login-button.user-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  padding: 0;
  justify-content: center;
}

.site-login-button.user-avatar .site-login-avatar {
  width: 34px;
  height: 34px;
}

.site-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 144px;
  border-radius: 12px;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
  padding: 8px;
  display: none;
  z-index: 30;
}

.site-user-dropdown.is-open {
  display: grid;
  gap: 4px;
}

.site-user-dropdown a,
.site-user-dropdown button {
  width: 100%;
  min-height: 36px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 10px;
  cursor: pointer;
}

.site-user-dropdown a:hover,
.site-user-dropdown button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.site-user-dropdown form {
  margin: 0;
}

.site-login-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}

.site-login-modal.is-open {
  display: flex;
}

.site-login-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.site-login-modal-dialog {
  position: relative;
  width: min(460px, calc(100% - 24px));
  border-radius: 14px;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  padding: 24px;
  color: #fff;
}

.site-login-modal-dialog h3 {
  font-size: 22px;
  font-weight: 900;
  margin: 0;
}

.site-login-modal-dialog p {
  margin: 10px 0 0;
  color: #d1d5db;
  font-size: 14px;
  line-height: 1.5;
}

.site-login-modal-actions {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.site-login-provider {
  height: 44px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
}

.site-login-provider.site-login-provider-roblox {
  background: #00a2ff;
  color: #fff;
}

.site-login-provider.site-login-provider-discord {
  background: #5865f2;
  color: #fff;
}

.site-login-modal-close {
  margin-top: 14px;
  width: 100%;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

body.site-login-modal-open {
  overflow: hidden;
}

.site-mobile-menu {
  display: none;
}

.site-footer {
  position: absolute;
  left: 0;
  width: 1280px;
  height: 370px;
  bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #181818 0%, #121212 100%);
  color: #bab9b9;
  padding: 38px 84px 32px;
  display: flex;
  justify-content: space-between;
}

.site-footer-brand {
  font-size: 36px;
  line-height: 1;
  font-weight: 900;
  color: #fff;
  white-space: nowrap;
}

.site-footer-brand .blue {
  color: #0079ff;
}

.site-footer-sub {
  margin-top: 10px;
  font-size: 14px;
  color: #fff;
  line-height: 16.94px;
  font-weight: 900;
}

.site-footer-grid {
  display: flex;
  gap: 80px;
  justify-content: center;
}

.site-footer h4 {
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 10px;
  color: #fff;
}

.site-footer-links {
  display: grid;
  gap: 2px;
}

.site-footer a {
  color: #bab9b9;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 60%;
  text-align: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.site-copyright {
  margin-top: 64px;
  text-align: center;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 700;
}

@media (max-width: 1300px) {
  .site-topbar,
  .site-topbar-inner,
  .site-footer {
    width: 100%;
    left: 0;
    transform: none;
  }
}

@media (max-width: 768px) {
  .site-topbar-inner {
    justify-content: center;
    padding: 0 16px;
  }

  .site-hamburger {
    display: inline-flex;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }

  .site-nav,
  .site-topbar-actions {
    display: none;
  }

  .site-brand {
    font-size: 30px;
  }

  .site-mobile-menu {
    position: absolute;
    top: 67px;
    left: 0;
    right: 0;
    background: rgba(20, 20, 20, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px 16px 20px;
    z-index: 25;
  }

  .site-mobile-menu.is-open {
    display: block;
  }

  .site-mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .site-mobile-menu-links a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
  }

  .site-mobile-menu-login {
    margin-top: 14px;
    width: 100%;
  }

  .site-mobile-user-actions {
    display: grid;
    gap: 10px;
    margin-top: 14px;
  }

  .site-mobile-user-form {
    margin: 0;
  }

  .site-footer {
    position: static;
    width: 100%;
    min-height: 220px;
    height: auto;
    padding: 30px 16px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }

  .site-footer-sub,
  .site-footer-grid {
    display: none;
  }

  .site-footer-right {
    position: static;
    transform: none;
    width: 100%;
  }

  .site-copyright {
    margin-top: 0;
  }
}
