/**
 * Közös fejléc bejelentkezett / app oldalakhoz (dashboard, profil, piactér, paklik, új játék).
 * A --bg, --border, --text változók az adott oldal :root-jából jönnek.
 */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: "Boogaloo", cursive;
  font-size: 1.25rem;
  background: linear-gradient(90deg, var(--acc), var(--acc2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.nav-a {
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text2, var(--muted));
  transition: all 0.2s;
}
.nav-a:hover {
  color: var(--text);
  background: var(--card, var(--surface));
}
.nav-a.nav-a--current {
  color: var(--text);
  background: var(--card-hover, rgba(255, 255, 255, 0.1));
}
[data-theme="light"] .nav-a.nav-a--current {
  background: var(--card-hover, rgba(0, 0, 0, 0.06));
}
.nav-a.cta {
  background: linear-gradient(135deg, var(--acc2), var(--acc));
  color: #fff;
}
.nav-a.cta:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}
.nav-a.cta.nav-a--current {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 2px;
}
[data-theme="light"] .nav-a.cta.nav-a--current {
  outline-color: rgba(0, 0, 0, 0.22);
}
.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}
.nav-av {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: var(--card, var(--surface));
  border: 1px solid var(--border);
}
.nav-av.avatar-premium,
.hero-av.avatar-premium {
  box-shadow: 0 0 0 2px #f59e0b, 0 0 0 4px rgba(253, 230, 138, 0.4), 0 0 16px rgba(245, 158, 11, 0.35);
  border-color: #d97706;
}
.nav-av.avatar-premium {
  box-shadow: 0 0 0 1px #f59e0b, 0 0 8px rgba(245, 158, 11, 0.25);
}
.nav-out {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text2, var(--muted));
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}
.nav-out:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.nav-user-wrap {
  position: relative;
}
.nav-user-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 4px 8px;
  margin: -4px -8px;
  border-radius: 10px;
  transition: background 0.2s;
}
.nav-user-trigger:hover {
  background: rgba(255, 255, 255, 0.05);
}
[data-theme="light"] .nav-user-trigger:hover {
  background: rgba(0, 0, 0, 0.04);
}
.nav-user-trigger:focus-visible {
  outline: 3px solid rgba(255, 209, 102, 0.75);
  outline-offset: 3px;
}
.notif-wrap {
  position: relative;
}
.notif-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card, var(--surface));
  color: var(--text);
  cursor: pointer;
  font-size: 1.05rem;
}
.notif-btn:hover {
  background: var(--card-hover, rgba(255, 255, 255, 0.08));
}
.notif-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  display: none;
}
.notif-count.show {
  display: inline-block;
}
.notif-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  width: 320px;
  max-width: min(92vw, 320px);
  background: var(--card, var(--surface));
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow, 0 4px 24px rgba(0, 0, 0, 0.3));
  z-index: 170;
  display: none;
  overflow: hidden;
}
.notif-dropdown.open {
  display: block;
}
.notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text2, var(--muted));
}
.notif-mark {
  border: none;
  background: transparent;
  color: var(--acc);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.78rem;
}
.notif-list {
  max-height: 360px;
  overflow: auto;
}
.notif-item {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.notif-item.unread {
  background: rgba(245, 158, 11, 0.08);
}
.notif-title {
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 3px;
}
.notif-msg {
  font-size: 0.8rem;
  color: var(--text2, var(--muted));
  line-height: 1.35;
}
.notif-time {
  font-size: 0.72rem;
  color: var(--text2, var(--muted));
  opacity: 0.8;
  margin-top: 5px;
}
.notif-empty {
  padding: 16px 12px;
  font-size: 0.84rem;
  color: var(--text2, var(--muted));
  text-align: center;
}
.profile-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  min-width: 200px;
  background: var(--card, var(--surface));
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow, 0 4px 24px rgba(0, 0, 0, 0.3));
  z-index: 150;
  display: none;
  overflow: hidden;
}
.profile-dropdown.open {
  display: block;
}
.profile-dropdown a,
.profile-dropdown button.dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  font-family: inherit;
  transition: background 0.2s;
}
.profile-dropdown a:hover,
.profile-dropdown button.dd-item:hover {
  background: var(--card-hover, rgba(255, 255, 255, 0.08));
}
.profile-dropdown a {
  text-decoration: none;
}
.profile-dropdown .dd-sep {
  border-top: 1px solid var(--border);
}
.badge-beta {
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #fff;
  vertical-align: middle;
  margin-left: 6px;
}
.nav-admin-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}
