/* ================= HEADER (same neon style) ================= */
.tfs-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 60px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 0 0, rgba(148, 163, 253, 0.16), transparent 55%),
    rgba(2, 6, 23, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(148, 163, 253, 0.3);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.9);
  transition: height .22s, box-shadow .22s;
}

.tfs-header.compact {
  height: 58px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.9);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 100px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.7));
}

.brand-text {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.12em;

}

.nav-desktop {
  display: block;
  min-width: 0;
}

.nav-list {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-list a {
  display: inline-block;
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background .18s, color .18s, border-color .18s;
  white-space: nowrap;
}

.nav-list a:hover,
.nav-list a:focus {
  background: rgba(30, 64, 175, 0.6);
  color: #fff;
  border-color: rgba(191, 219, 254, 0.9);
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.9);
  outline: none;
}

.nav-mobile-controls {
  display: none;
  align-items: center;
  gap: 8px;
}

.hamburger {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 7px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 253, 0.5);
  background: radial-gradient(circle at 0 0, rgba(148, 163, 253, 0.4), transparent 60%);
  cursor: pointer;
}

.hamburger:focus {
  outline: 2px solid rgba(127, 233, 255, 0.4);
  outline-offset: 3px;
}

.ham-line {
  width: 20px;
  height: 2px;
  background: #e5e7eb;
  border-radius: 2px;
  display: block;
  transition: transform .22s, opacity .22s;
}

.hamburger.open .ham-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.open .ham-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.3);
}

.hamburger.open .ham-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 70px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.98));
  border-bottom: 1px solid rgba(148, 163, 253, 0.35);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.95);
  transform-origin: top center;
  transform: translateY(-8px) scaleY(.96);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s cubic-bezier(.2, .9, .2, 1), opacity .2s;
  max-height: calc(100vh - 88px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 900;
}

.mobile-nav.show {
  transform: translateY(0) scaleY(1);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-list {
  list-style: none;
  margin: 10px 16px 14px;
  padding: 6px 0 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-list a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mobile-nav-list a:hover,
.mobile-nav-list a:focus {
  background: rgba(30, 64, 175, 0.6);
  color: #fff;
  outline: none;
}

@media(max-width:992px) {
  .nav-desktop {
    display: none;
  }

  .nav-mobile-controls {
    display: flex;
  }

  .tfs-header {
    height: 64px;
  }

  .mobile-nav {
    top: 64px;
  }

  .brand-logo {
    height: 86px;
  }
}

@media(max-width:520px) {
  .brand-text {
    display: none;
  }
}

@media(max-width:420px) {
  .tfs-header {
    height: 60px;
  }

  .mobile-nav {
    top: 60px;
  }
}

.nav-list a:focus-visible,
.mobile-nav-list a:focus-visible {
  outline: 3px solid rgba(127, 233, 255, 0.14);
  outline-offset: 3px;
}

.nav-list a,
.mobile-nav-list a,
.brand-link {
  text-decoration: none;
}