.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 1000;
  background: rgba(7, 8, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease;
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.header-logo:hover { opacity: 0.85; }
.header-logo img {
  height: 68px;
  width: auto;
  max-height: 68px;
  object-fit: contain;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  position: relative;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
  color: var(--text-primary);
  background: rgba(225, 163, 55, 0.1);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: 1px;
}

.nav-admin {
  color: #22c55e !important;
}
.nav-admin:hover {
  background: rgba(34, 197, 94, 0.1) !important;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-auth {
  height: 38px;
  padding: 0 20px;
  background: var(--gold-gradient);
  border: none;
  border-radius: 8px;
  color: #000;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font-main);
}

.btn-auth:hover {
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

.header-balance {
  display: flex;
  align-items: center;
  gap: 6px;
}

.balance-display {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.2s;
  height: 38px;
}

.balance-display:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(225, 163, 55, 0.3);
}

.balance-amount {
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
  min-width: 50px;
}

.btn-deposit {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: none;
  background: var(--gold-gradient);
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  font-size: 14px;
}

.btn-deposit:hover {
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

.user-avatar {
  position: relative;
  width: 38px;
  height: 38px;
  cursor: pointer;
  border-radius: 50%;
  border: 2px solid rgba(225, 163, 55, 0.3);
  transition: all 0.2s;
  flex-shrink: 0;
}

.user-avatar:hover {
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(225, 163, 55, 0.2);
}

.user-avatar > img:first-child {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.rank-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

@media (max-width: 900px) {
  .site-header { height: 68px; }
  .header-logo img { height: 48px; max-height: 48px; }
  .header-nav { display: none; }
  .hamburger { display: flex; }
  .header-right { gap: 8px; }
  .balance-display { padding: 4px 10px; }
  .balance-amount { font-size: 14px; }
  .user-avatar { width: 32px; height: 32px; }
  .btn-deposit { width: 32px; height: 32px; font-size: 12px; }
}

@media (max-width: 480px) {
  .header-inner { padding: 0 10px; }
  .balance-display svg { display: none; }
  .header-logo img { height: 40px; max-height: 40px; }
}
