:root {
  --header-height: 80px;
  --gold: #c9a96e;
  --gold-hover: #e5c78f;
  --gold-dim: rgba(201, 169, 110, 0.15);
  --bg-dark: #080808;
  --border: rgba(201, 169, 110, 0.2);
  --font-mono: 'Space Mono', monospace;
}

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(8, 8, 8, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 9999;
  padding: 0 5%;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* LEFT: Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.logo-img {
  height: 48px;
  filter: brightness(0) invert(1);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo:hover .logo-img {
  transform: scale(1.1) rotate(-3deg);
}

.logo-text {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ===== HAMBURGER BUTTON ===== */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 10001;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--gold);
  transition: all 0.3s ease;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* CENTER: Nav */
.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 10px 0;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* RIGHT: Buttons */
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.auth-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 10px 22px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.login-btn {
  color: white;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-btn:hover {
  background: white;
  color: black;
  border-color: white;
}

.signup-btn {
  color: black;
  background: var(--gold);
  border: 1px solid var(--gold);
}

.signup-btn:hover {
  background: transparent;
  color: var(--gold);
}

.icon-btn {
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  text-decoration: none;
}

.icon-btn:hover {
  color: var(--gold);
  transform: translateY(-2px);
}

/* Profile Dropdown */
.profile-dropdown {
  position: relative;
}

.profile-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-icon-styled {
  color: var(--gold);
  background: var(--gold-dim);
  padding: 10px;
  border-radius: 50%;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-btn:hover .profile-icon-styled {
  background: var(--gold);
  color: black;
  border-color: var(--gold);
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 15px);
  background: #0f0f0f;
  min-width: 220px;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 15px 20px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.2s ease;
}

.dropdown-menu a:hover {
  background: var(--gold-dim);
  color: var(--gold);
}

.dropdown-menu hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 992px) {
  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 10px;
  }
}

@media (max-width: 768px) {
  .hamburger-btn {
    display: flex;
    order: -1;
  }

  .logo-text {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--bg-dark);
    flex-direction: column;
    gap: 0;
    padding: 20px 0;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9998;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-links a {
    padding: 20px 5%;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links a::after {
    display: none;
  }

  .header-right {
    gap: 15px;
  }

  .auth-btn {
    padding: 8px 16px;
    font-size: 9px;
  }
}

@media (max-width: 480px) {
  .main-header {
    padding: 0 4%;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .profile-icon-styled {
    width: 36px;
    height: 36px;
    padding: 8px;
  }
}