/* ==========================================================
   NAV & HEADER — Navbar, hamburger, hero section, launcher panel
   ========================================================== */

/* ---- Navbar Base ---- */
.navbarhaze {
  background-color: rgba(35, 35, 35, 0.9);
  height: 80px;
  padding: 0 220px;
  position: fixed;
  top: 0;
  font-weight: 600;
  font-size: 18px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.19);
  transition: all 0.2s ease-out;
  z-index: 1200 !important;
}
.navbarhide { transform: translateY(-80px); }
.navbarhaze .navbar-collapse { position: relative; z-index: 1201; }

.navbarhaze .nav-item { margin-left: 24px; }
.navbarhaze ul a { padding: 10px!important; color: #D9D9D9; border-radius: 5px; transition: none; }

.navbarhaze #navbarNavDropdown .navbar-nav .nav-link {
  color: rgba(255,255,255,.82) !important;
  text-transform: none !important;
  position: relative;
  transition: color .18s ease, filter .18s ease;
}
.navbarhaze #navbarNavDropdown .navbar-nav .nav-link:hover,
.navbarhaze #navbarNavDropdown .navbar-nav .nav-link:focus-visible {
  color: #ffffff !important;
  filter: brightness(1.04);
}
.navbarhaze #navbarNavDropdown .navbar-nav .nav-link.active {
  color: #fff !important;
}
.navbarhaze #navbarNavDropdown .navbar-nav .nav-item + .nav-item { margin-left: 4px; }
.navbarhaze #navbarNavDropdown .navbar-nav .nav-link i { font-size: .95rem; margin-right: 8px; opacity: .9; }

.navbarhaze .navbar-nav .nav-link:link,
.navbarhaze .navbar-nav .nav-link:visited { color:#f2f2f2 !important; }

/* ---- Navbar Dropdown ---- */
.navbarhaze .dropdown-menu {
  margin-top: 10px!important;
  background-color: #211e1b !important;
  border: 1px solid #a45d1f !important;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,.45) !important;
  padding: 8px !important;
  min-width: 320px;
}
.navbarhaze .dropdown-menu-left { margin-top: 10px!important; }
.navbarhaze .dropdown-menu.columns-2 { min-width: 550px; }
.navbarhaze .dropdown-menu.columns-3 { min-width: 600px; }
.navbarhaze .dropdown-menu .dropdown-item {
  color: #e0e0e0 !important;
  border-radius: 8px;
  padding: 10px 12px;
  transition: background .18s ease, color .18s ease;
  text-transform: none !important;
}
.navbarhaze .dropdown-menu .dropdown-item:hover {
  background: rgba(197,114,17,.18) !important;
  color: #fff !important;
}
.navbarhaze .dropdown-menu .dropdown-item i { width: 8px; margin-right: 3px; opacity:.9; }
.navbarhaze .multi-column-dropdown { list-style: none; margin: 0px; padding: 0px; }
.navbarhaze .multi-column-dropdown li a {
  display: block; clear: both; color: #D9D9D9;
  font-family: HelveticaNormal; font-weight: 600;
  font-size: 15px; margin: 0 20px; text-decoration: none;
}
.navbarhaze .multi-column-dropdown li .highlight-buttom { background-color: #833c16; color: #141414; }
.navbarhaze .multi-column-dropdown li:first-child { margin-top: 20px; }
.navbarhaze .multi-column-dropdown li:last-child { margin-bottom: 20px; }
.navbarhaze .multi-column-dropdown li a:hover { color: white; background: rgba(131,90,50,0.4); }

.navbarhaze .dropdown-menu:after {
  content: ''; position: absolute; top: 1px; left: 50px;
  margin-left: -10px; margin-top: -10px; width: 0; z-index: 1; height: 0;
  border-bottom: solid 10px #141414;
  border-left: solid 10px transparent; border-right: solid 10px transparent;
}

.navbar-dropdown { color: white; background-color: transparent!important; border: none; }
.navbar-dropdown:hover { color: white; }
.navbar-dropdown:focus, .navbar-dropdown:active { color: white; outline: none; box-shadow: none; }

.navbarhaze .solid {
  background-color: var(--ColorTemplate); color: white;
  border-radius: 5px; transition: none;
}
.navbarhaze .solid:hover { background-color: var(--ColorTemplate); }
.navbarhaze .hole {
  border-radius: 5px; color: white;
  border: 2px solid #833c16; transition: none;
}
.navbarhaze .hole:hover { color: white; background-color: #a45d1f; border: 2px solid #a45d1f; }

.extra-dropdownmenu { background-color: #ececec; border-radius: 0 10px 10px 0; }
.navbarhaze .extra-dropdownmenu .subtitle { padding: 10px 30px; color: black; font-family: HelveticaNormal; font-weight: 600; }
.navbarhaze .extra-dropdownmenu li a { color: black; background: none; font-family: HelveticaNormal; font-weight: 500; }
.navbarhaze .extra-dropdownmenu li a:hover { color: #833c16; background: none; }

/* ---- Navbar CTAs ---- */
.navbarhaze .navbar-collapse > a.nav-link[href*="register"],
.navbarhaze .navbar-collapse > a.nav-link[href*="login"],
.d-md-inline-flex {
  --h:34px;
  display:inline-flex !important;
  align-items:center !important;
  gap:8px !important;
  height:var(--h) !important;
  padding:0 14px !important;
  border-radius:999px !important;
  font-size:.9rem !important;
  font-weight:800 !important;
  letter-spacing:.15px !important;
  color:#fff !important;
  background: transparent !important;
  border:1px solid rgba(197,114,17,.8) !important;
  box-shadow:none !important;
  transition: transform .15s ease, filter .2s ease, box-shadow .2s ease, border-color .2s ease !important;
}
.navbarhaze .navbar-collapse > a.nav-link[href*="register"]:hover {
  background: rgba(197,114,17,.16) !important;
  border-color:#ffb86b !important;
  filter: brightness(1.02);
  transform: translateY(-1px);
}
.navbarhaze .navbar-collapse > a.nav-link[href*="login"] {
  background: rgba(197,114,17,.06) !important;
}
.navbarhaze .navbar-collapse > a.nav-link[href*="login"]:hover {
  background: rgba(197,114,17,.20) !important;
  border-color:#ffb86b !important;
  transform: translateY(-1px);
}
.navbarhaze .navbar-collapse > a.nav-link[href*="register"]:active,
.navbarhaze .navbar-collapse > a.nav-link[href*="login"]:active { transform: translateY(0); }
.navbarhaze .navbar-collapse > a.nav-link[href*="register"] i,
.navbarhaze .navbar-collapse > a.nav-link[href*="login"] i { font-size:.95rem !important; color:#fff !important; }
.navbarhaze .navbar-collapse > a.nav-link[href*="register"]:focus,
.navbarhaze .navbar-collapse > a.nav-link[href*="login"]:focus {
  outline:none !important;
  box-shadow: 0 0 0 3px rgba(255,174,43,.25) !important;
}

/* Mobile dropdown CTAs */
@media (max-width: 767.98px) {
  .navbarhaze .dropdown-menu .dropdown-item[href*="register"],
  .navbarhaze .dropdown-menu .dropdown-item[href*="login"] {
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:8px !important;
    height:30px !important;
    border-radius:999px !important;
    margin:0px 0px !important;
    font-weight:800 !important;
    letter-spacing:.2px !important;
    font-size: 0.8rem;
  }
  .navbarhaze .dropdown-menu .dropdown-item[href*="register"] {
    background:transparent !important;
    border:1px solid rgba(197,114,17,.7) !important;
    color:#ffae5d !important;
  }
  .navbarhaze .dropdown-menu .dropdown-item[href*="login"] {
    background: linear-gradient(135deg,#c57211,#ffb86b) !important;
    color:#141414 !important;
    border:0 !important;
  }
}

/* ---- Hamburger Menu ---- */
.menu-hamburger:focus { border: none!important; }
.navbar-toggler { padding: 0px!important; }
.navbar-toggler:focus, .navbar-toggler:active, .navbar-toggler-icon:focus { outline: none; box-shadow: none; }

.hamburger {
  margin-top: 0px; width: 26px; height: 26px; position: relative;
}
.hamburger .bar {
  padding: 0; width: 26px; height: 4px; background-color: white;
  display: block; border-radius: 4px;
  transition: all 0.2s ease-in-out; position: absolute;
}
.bar1 { top: 0; }
.bar2, .bar3 { top: 11px; }
.bar3 { right: 0; }
.bar4 { bottom: 0; }

.checkbox1:checked + label > .hamburger1 > .bar1 {
  transform: rotate(45deg); transform-origin: 5%; width: 34.5px;
}
.checkbox1:checked + label > .hamburger1 > .bar2 { transform: translateX(-40px); background-color: transparent; }
.checkbox1:checked + label > .hamburger1 > .bar3 { transform: translateX(10px); background-color: transparent; }
.checkbox1:checked + label > .hamburger1 > .bar4 {
  transform-origin: 5%; transform: rotate(-45deg); width: 34.5px;
}

/* ---- Hero Section ---- */
.hero-section {
  background-image: linear-gradient(rgba(0,0,0,0) 80%, #353535);
  position: relative;
}
.hero-media {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}
.haze-video-full {
  display: block; position: absolute; width: 100%; height: 100%;
  opacity: 0.4; z-index: -1; object-fit: cover;
  aspect-ratio: auto; top: 0; left: 0;
}

.hero-right-section {
  padding: 0 220px;
  position: relative;
}
.hero-right-section .hero-location {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  background: rgba(0,0,0,.35) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  color: #fff !important;
  text-transform: uppercase !important;
  letter-spacing: .06em !important;
  font-size: 1rem;
  font-family: HelveticaNormal;
  margin-bottom: 10px;
}
.hero-right-section .hero-location .hero-icon {
  font-size: 15px; color: #FFAE2B;
  text-shadow: 0 1px 6px rgba(0,0,0,.55);
  line-height: 1;
  display: inline-block !important;
  margin-right: 8px !important;
}
.hero-right-section .hero-location .hero-label { font-weight: 700; color: #fff; }
.hero-right-section .hero-location .hero-count {
  display: inline-flex; align-items: center; gap: 6px;
}
.hero-right-section .hero-location .status-dot {
  width: 10px; height: 10px; border-radius: 50%;
  display: inline-block; margin: 0 6px 0 10px;
  background: #00e676;
  box-shadow: 0 0 6px #00e676, 0 0 12px rgba(0,230,118,.5);
  vertical-align: middle;
}
.hero-right-section .hero-location #hero-online-count {
  font-weight: 800; color: #fff;
  display: inline-block !important; vertical-align: middle;
}

.hero-right-section .hero-content {
  color: white; font-family: DrukBold; font-size: 3rem; text-align: right;
}
.hero-right-section .hero-content .hero-content-sub {
  color: #D9D9D9; font-size: 1.5rem; font-family: HelveticaNormal; margin: 16px 0;
}
.hero-right-section .hero-content a {
  background-color: #833c16; text-decoration: none; border-radius: 5px;
  padding: 25px 30px; color: white; font-weight: 900;
  font-family: HelveticaNormal; z-index: 10!important; font-size: 1.5rem;
}
.hero-right-section .hero-content a:hover { background-color: #a45d1f; color: white; }

/* Prevent pseudo-element dots in hero */
.hero-right-section #hero-online.hero-location::before,
.hero-right-section #hero-online.hero-location::after { content: none !important; display: none !important; }
#hero-online-count::before, #hero-online .count-pulse::before,
#hero-online .hero-count::before, .hero-count::before { content: none !important; }

.hero-right-section .hero-content > a[href*="downloads"] {
  position: relative; z-index: 1 !important;
  display: inline-flex !important;
}

.center {
  width: 100%; margin: 0; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  text-align: center; color: white;
}
.center .hero-title {
  color: white; letter-spacing: 1px;
  font-size: clamp(18px, 5vw, 30px);
  font-weight: 600; line-height: 30px; font-family: HelveticaNormal;
}
.center .hero-description {
  color: #D9D9D9; font-size: clamp(16px, 4vw, 20px);
  font-weight: 400; font-family: HelveticaNormal;
}
.center a {
  background-color: #833c16; text-decoration: none; border-radius: 5px;
  padding: 15px 20px; color: white;
}

/* ---- Hero Homepage Styles ---- */
.nebula-backdrop-layer { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.nebula-orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.15;
}
.nebula-orb--purple { width: 600px; height: 600px; background: #6b2fa0; top: -10%; left: -5%; }
.nebula-orb--gold { width: 500px; height: 500px; background: #fca311; bottom: -5%; right: -5%; }
.nebula-orb--cyan { width: 400px; height: 400px; background: #00b4d8; top: 40%; left: 50%; }
.mystic-runic-grid-layer {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(255,174,43,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.sparkles-overlay-layer {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
}

.hero-kicker {
  display: inline-block; font-weight: 900; font-size: .8rem;
  letter-spacing: .18em; text-transform: uppercase;
  background: linear-gradient(90deg, var(--ColorTemplate, #833c16), #FFAE2B);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-title { font-family: DrukBold; font-size: clamp(2.5rem, 7vw, 5rem); color: #fff; text-transform: uppercase; line-height: 1; }
.hero-content-sub { color: #D9D9D9; font-size: clamp(1rem, 2vw, 1.2rem); max-width: 540px; }
.hero-power-row { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-power-row span { display: inline-flex; align-items: center; gap: 8px; color: #D9D9D9; font-weight: 600; }

.hero-actions { display: flex; gap: 16px; margin-top: 32px; }
.hero-action {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px; border-radius: 10px; font-weight: 900;
  text-transform: uppercase; text-decoration: none; font-size: 1rem;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.hero-action--primary {
  background: linear-gradient(135deg, var(--ColorTemplate, #833c16), #FFAE2B);
  color: #141414; box-shadow: 0 10px 24px rgba(0,0,0,.35);
}
.hero-action--primary:hover { transform: translateY(-2px); filter: brightness(1.05); color: #141414; }
.hero-action--secondary {
  background: rgba(255,255,255,.06); color: #fff;
  border: 1px solid rgba(255,255,255,.12);
}
.hero-action--secondary:hover { background: rgba(255,255,255,.10); transform: translateY(-2px); color: #fff; }

/* ---- Hero Launcher Panel ---- */
.hero-launcher-panel {
  background: linear-gradient(145deg, rgba(20,20,20,.92), rgba(10,10,10,.96));
  border: 1px solid rgba(255,255,255,.08); border-radius: 20px;
  padding: 28px; box-shadow: 0 24px 48px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.04);
}
.hero-launcher-panel__top { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.hero-launcher-panel__seal {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, #ffb347, #833c16);
  display: grid; place-items: center; color: #141414; font-size: 24px;
}
.hero-launcher-panel__top strong { display: block; font-size: 1.1rem; color: #fff; text-transform: uppercase; }
.hero-launcher-panel__eyebrow { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: #c9c9c9; }
.hero-launcher-panel__status { display: flex; gap: 20px; margin-bottom: 16px; }
.hero-launcher-panel__status > div { flex: 1; }
.hero-launcher-panel__status span { display: block; font-size: .8rem; text-transform: uppercase; color: #999; letter-spacing: .05em; }
.hero-launcher-panel__status strong { display: block; font-size: 1.15rem; color: #fff; margin-top: 4px; }

.hero-launcher-panel__meter { height: 6px; background: rgba(255,255,255,.06); border-radius: 99px; overflow: hidden; margin-bottom: 18px; }
.hero-launcher-panel__meter span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--ColorTemplate, #833c16), #FFAE2B); }

.hero-launcher-panel__stats { display: flex; gap: 12px; margin-bottom: 18px; }
.hero-launcher-panel__stats > div { flex: 1; background: rgba(255,255,255,.03); border-radius: 10px; padding: 14px; text-align: center; }
.hero-launcher-panel__stats span { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: #999; }
.hero-launcher-panel__stats strong { display: block; font-size: 1.25rem; color: #fff; margin-top: 4px; }

.hero-classes-strip { display: flex; gap: 8px; margin-bottom: 18px; }
.hero-class-token {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 99px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  color: #ddd; font-size: .82rem; font-weight: 700;
}
.hero-class-token img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }

.hero-launcher-panel__steps { display: flex; gap: 8px; }
.hero-launcher-panel__steps span {
  flex: 1; text-align: center; padding: 10px 0; border-radius: 8px;
  background: rgba(255,255,255,.04); font-size: .82rem; font-weight: 600; color: #ddd;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}

/* ---- Status Dot ---- */
.status-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #00ff66; box-shadow: 0 0 6px #00ff66, 0 0 12px #00ff66;
  display: inline-block;
}
.isekai-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700;
}
.isekai-badge--online { background: rgba(0,255,102,.12); color: #00ff66; border: 1px solid rgba(0,255,102,.3); }
.isekai-badge--offline { background: rgba(255,68,68,.12); color: #ff4444; border: 1px solid rgba(255,68,68,.3); }

.count-pulse {
  color: #3ddc35 !important;
  animation: pulseGlow 2.2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0% { text-shadow: 0 0 0 rgba(0,255,102,.0); }
  50% { text-shadow: 0 0 12px rgba(0,255,102,.45), 0 0 22px rgba(0,255,135,.25); }
  100% { text-shadow: 0 0 0 rgba(0,255,102,.0); }
}

/* ---- Mobile Mega Panel ---- */
.mobile-mega-panel { padding: 20px; }
.mobile-mega-status { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.mobile-mega-status__icon i { font-size: 24px; color: var(--ColorTemplate, #833c16); }
.mobile-mega-status span { display: block; font-size: .82rem; color: #999; }
.mobile-mega-stats { display: flex; gap: 16px; margin-bottom: 16px; }
.mobile-mega-stats > div { flex: 1; }
.mobile-mega-stats span { display: block; font-size: .76rem; color: #999; text-transform: uppercase; }
.mobile-mega-stats strong { display: block; font-size: 1.1rem; color: #fff; }
.mobile-mega-actions { display: flex; gap: 10px; }
.mobile-mega-actions a {
  flex: 1; text-align: center; padding: 10px; border-radius: 8px;
  background: rgba(255,255,255,.05); color: #ddd; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}

.hide-deidad { display: block; }
