/* ================================
   HEADER / NAV — Tavion Premium
================================ */

.header {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1220px, calc(100% - 32px));
  z-index: 100;

  padding: 12px 14px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;

  background:
    linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025)),
    rgba(7,7,7,0.76);

  backdrop-filter: blur(24px);
  box-shadow:
    0 24px 90px rgba(0,0,0,0.48),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.header::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201,162,77,0.25),
    transparent
  );
  opacity: 0.65;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  padding: 1px;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.logo {
  position: relative;
  z-index: 2;

  display: inline-flex;
  align-items: center;
  gap: 11px;

  padding: 4px 10px 4px 4px;
  border-radius: 999px;

  font-weight: 900;
  letter-spacing: -0.03em;
  white-space: nowrap;

  transition: 0.25s ease;
}

.logo:hover {
  background: rgba(255,255,255,0.055);
}

.logo span {
  width: 40px;
  height: 40px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  color: #050505;
  font-weight: 950;

  background: linear-gradient(135deg, var(--gold), var(--gold-light));

  box-shadow:
    0 0 34px rgba(201,162,77,0.44),
    inset 0 1px 0 rgba(255,255,255,0.28);
}

.logo strong {
  color: var(--white);
}

/* NAV */

.nav {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.nav a {
  position: relative;

  min-height: 42px;
  padding: 0 15px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;

  color: var(--gray);
  font-size: 0.92rem;
  font-weight: 650;

  transition: 0.25s ease;
  overflow: hidden;
}

.nav a::before {
  content: "";
  position: absolute;
  inset: 0;

  border-radius: inherit;

  background:
    radial-gradient(circle at 50% 0%, rgba(201,162,77,0.18), transparent 55%),
    rgba(255,255,255,0.055);

  opacity: 0;
  transition: 0.25s ease;
}

.nav a:hover {
  color: var(--white);
}

.nav a:hover::before {
  opacity: 1;
}

.nav a span,
.nav a strong {
  position: relative;
  z-index: 2;
}

/* Main Action Button */

.nav-btn {
  color: #050505 !important;
  font-weight: 900 !important;

  background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;

  box-shadow:
    0 14px 42px rgba(201,162,77,0.24),
    inset 0 1px 0 rgba(255,255,255,0.28);
}

.nav-btn::before {
  display: none;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 20px 56px rgba(201,162,77,0.34),
    inset 0 1px 0 rgba(255,255,255,0.3);
}

/* Logout subtle */

.nav a[href*="logout"] {
  color: rgba(245,245,245,0.62);
  border: 1px solid rgba(255,255,255,0.08);
}

.nav a[href*="logout"]:hover {
  color: var(--white);
  border-color: rgba(201,162,77,0.24);
}

/* Mobile Toggle */

.nav-toggle {
  position: relative;
  z-index: 3;

  display: none;

  width: 44px;
  height: 44px;

  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);

  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025)),
    rgba(0,0,0,0.25);

  cursor: pointer;
}

.nav-toggle span {
  display: block;

  width: 18px;
  height: 2px;

  margin: 5px auto;

  border-radius: 999px;
  background: var(--white);

  transition: 0.25s ease;
}

.nav-toggle:hover {
  border-color: var(--gold-border);
  background: rgba(201,162,77,0.09);
}

/* Optional active-like current page effect */
.nav a[aria-current="page"] {
  color: var(--white);
  background: rgba(201,162,77,0.12);
  border: 1px solid rgba(201,162,77,0.24);
}

/* ================================
   MOBILE NAV
================================ */

@media (max-width: 1040px) {
  .header {
    top: 12px;
    width: calc(100% - 24px);
    padding: 10px 12px;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;

    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;

    padding: 14px;

    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.1);

    background:
      radial-gradient(circle at 80% 0%, rgba(201,162,77,0.18), transparent 34%),
      linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025)),
      rgba(7,7,7,0.96);

    backdrop-filter: blur(24px);

    box-shadow:
      0 28px 90px rgba(0,0,0,0.55),
      inset 0 1px 0 rgba(255,255,255,0.08);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    width: 100%;
    justify-content: flex-start;
    min-height: 48px;
    padding: 0 16px;

    border: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.035);
  }

  .nav-btn {
    justify-content: center !important;
  }
}

@media (max-width: 520px) {
  .logo strong {
    display: none;
  }

  .logo {
    padding-right: 4px;
  }
}