/* V79 - Real header sync + new Download layout */

/* One header geometry for every public page, including login and account panel */
html body .wrapper > .header,
html body .wrapper > .header.inner,
html body .wrapper > .header.header-main{
  position:relative!important;
  z-index:1000!important;
  overflow:visible!important;
  height:auto!important;
  min-height:74px!important;
}
html body .wrapper > .header .nav{
  position:relative!important;
  z-index:1001!important;
  background:rgba(3,8,14,.97)!important;
  border-bottom:1px solid rgba(218,163,47,.16)!important;
  box-shadow:0 10px 32px rgba(0,0,0,.28)!important;
  overflow:visible!important;
}
html body .wrapper > .header .nav > .content-area{
  width:min(1320px, calc(100vw - 64px))!important;
  max-width:1320px!important;
  height:74px!important;
  min-height:74px!important;
  margin:0 auto!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  flex-wrap:nowrap!important;
  gap:0!important;
  overflow:visible!important;
  transform:none!important;
}
html body .wrapper > .header .nav__logo{
  width:72px!important;
  min-width:72px!important;
  flex:0 0 72px!important;
  margin:0 24px 0 0!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
}
html body .wrapper > .header .nav__logo img{
  width:auto!important;
  height:auto!important;
  max-width:54px!important;
  max-height:54px!important;
  object-fit:contain!important;
  display:block!important;
}
html body .wrapper > .header .nav__links{
  position:static!important;
  left:auto!important;
  top:auto!important;
  right:auto!important;
  bottom:auto!important;
  transform:none!important;
  width:auto!important;
  height:74px!important;
  min-height:74px!important;
  flex:1 1 auto!important;
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:clamp(18px,2.25vw,34px)!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
html body .wrapper > .header .nav__links-item{
  position:relative!important;
  width:auto!important;
  height:74px!important;
  min-height:74px!important;
  margin:0!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:visible!important;
  white-space:nowrap!important;
}
html body .wrapper > .header .nav__links-item a{
  position:relative!important;
  z-index:2!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  height:74px!important;
  min-height:74px!important;
  margin:0!important;
  padding:0!important;
  color:#eee8dc!important;
  font-size:14px!important;
  line-height:1!important;
  font-weight:900!important;
  letter-spacing:.16em!important;
  text-transform:uppercase!important;
  text-decoration:none!important;
  text-shadow:none!important;
  transform:none!important;
  transition:color .22s ease,text-shadow .22s ease,transform .22s ease!important;
}
html body .wrapper > .header .nav__links-item::before,
html body .wrapper > .header .nav__links-item a::before,
html body .wrapper > .header .nav__links-item a::after{
  content:none!important;
  display:none!important;
}
html body .wrapper > .header .nav__links-item::after{
  content:""!important;
  display:block!important;
  position:absolute!important;
  left:50%!important;
  bottom:14px!important;
  transform:translateX(-50%)!important;
  width:0!important;
  height:2px!important;
  border-radius:999px!important;
  background:linear-gradient(90deg,transparent,#b87512 10%,#f0ad24 34%,#ffe28a 50%,#f0ad24 66%,#b87512 90%,transparent)!important;
  box-shadow:0 0 14px rgba(246,177,37,.70),0 0 28px rgba(246,177,37,.24)!important;
  opacity:0!important;
  pointer-events:none!important;
  transition:width .22s ease,opacity .22s ease!important;
}
html body .wrapper > .header .nav__links-item:hover a,
html body .wrapper > .header .nav__links-item.active a{
  color:#ffe38d!important;
  text-shadow:0 0 13px rgba(255,190,47,.62),0 0 26px rgba(255,190,47,.25)!important;
  transform:translateY(-1px)!important;
}
html body .wrapper > .header .nav__links-item:hover::after,
html body .wrapper > .header .nav__links-item.active::after{
  width:calc(100% + 36px)!important;
  min-width:76px!important;
  opacity:1!important;
}

/* language + account position */
html body .wrapper > .header .nav__langs{
  margin-left:auto!important;
  flex:0 0 auto!important;
  position:relative!important;
  z-index:1005!important;
}
html body .wrapper > .header .nav-auth-group{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:10px!important;
  margin-left:18px!important;
  flex:0 0 auto!important;
  white-space:nowrap!important;
  position:relative!important;
  z-index:1006!important;
}

/* exact connected button visual requested */
html body .wrapper > .header .nav-panel-btn.nav-auth-connected{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:10px!important;
  width:auto!important;
  min-width:168px!important;
  max-width:none!important;
  height:42px!important;
  min-height:42px!important;
  padding:0 18px!important;
  border-radius:999px!important;
  color:#fff!important;
  border:2px solid #10d760!important;
  background:linear-gradient(180deg,#ffc23c 0%,#ff9d08 55%,#d57900 100%)!important;
  box-shadow:0 0 0 1px rgba(255,255,255,.16) inset,0 0 18px rgba(17,225,94,.50),0 10px 22px rgba(0,0,0,.35)!important;
  text-decoration:none!important;
  overflow:visible!important;
  letter-spacing:0!important;
  text-shadow:0 1px 1px rgba(0,0,0,.55)!important;
}
html body .wrapper > .header .nav-panel-btn.nav-auth-connected:hover{
  transform:translateY(-1px)!important;
  filter:brightness(1.05)!important;
}
html body .wrapper > .header .nav-panel-btn.nav-auth-connected img{
  width:16px!important;
  height:16px!important;
  flex:0 0 16px!important;
  margin:0!important;
  filter:brightness(0) invert(1) drop-shadow(0 0 4px rgba(255,255,255,.45))!important;
}
html body .wrapper > .header .nav-panel-btn.nav-auth-connected span{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  line-height:1.02!important;
  max-width:none!important;
  min-width:0!important;
  overflow:visible!important;
}
html body .wrapper > .header .nav-panel-btn.nav-auth-connected strong,
html body .wrapper > .header .nav-panel-btn.nav-auth-connected em{
  display:block!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
  font-style:normal!important;
  font-family:Arial,Helvetica,sans-serif!important;
  font-weight:900!important;
  text-transform:uppercase!important;
}
html body .wrapper > .header .nav-panel-btn.nav-auth-connected strong{
  color:#fff!important;
  font-size:11px!important;
  letter-spacing:1.05px!important;
}
html body .wrapper > .header .nav-panel-btn.nav-auth-connected em{
  margin-top:2px!important;
  color:#fffbd4!important;
  font-size:10px!important;
  letter-spacing:.85px!important;
}
html body .wrapper > .header .nav-auth-logout{
  height:42px!important;
  min-width:68px!important;
  padding:0 16px!important;
  border-radius:999px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:1px solid rgba(255,112,112,.42)!important;
  background:linear-gradient(180deg,rgba(56,16,20,.96),rgba(20,14,18,.96))!important;
  color:#ffdede!important;
  font-size:12px!important;
  font-weight:900!important;
  letter-spacing:.16em!important;
  text-transform:uppercase!important;
  text-decoration:none!important;
  box-shadow:0 10px 24px rgba(0,0,0,.32),inset 0 1px 0 rgba(255,255,255,.06)!important;
}
html body .wrapper > .header .nav-panel-btn.nav-auth-login{
  margin-left:18px!important;
  height:42px!important;
  min-width:158px!important;
  padding:0 22px!important;
  border-radius:999px!important;
}

/* Wiki alignment and no hidden overlay over menu */
html body .wiki{
  max-width:1240px!important;
  margin:0 auto!important;
  gap:24px!important;
  align-items:stretch!important;
}
html body .wiki__nav{
  flex:0 0 330px!important;
  max-width:330px!important;
  overflow:hidden!important;
}
html body .wiki__content{
  flex:1 1 auto!important;
  min-width:0!important;
  padding:24px 28px!important;
  overflow:hidden!important;
}
html body .wiki__content p,
html body .wiki__content li{
  line-height:1.65!important;
}

/* New Download V79 */
html body.download-page{
  background:#03080e!important;
}
html body .download-v79-page{
  position:relative!important;
  padding:72px 0 96px!important;
  background:
    radial-gradient(circle at 70% 22%,rgba(255,166,20,.10),transparent 28%),
    linear-gradient(180deg,rgba(5,10,16,.96),rgba(2,6,11,.99))!important;
}
html body .download-v79-hero{
  width:min(1320px,calc(100vw - 64px))!important;
  margin:0 auto 34px!important;
  min-height:340px!important;
  border-radius:30px!important;
  border:1px solid rgba(222,169,58,.30)!important;
  background:
    linear-gradient(90deg,rgba(3,8,14,.92) 0%,rgba(3,8,14,.74) 42%,rgba(3,8,14,.20) 100%),
    url('../images/v79-header-download-real-fix-icarus-banner-leviathan.webp') center/cover no-repeat!important;
  box-shadow:0 28px 70px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06)!important;
  padding:48px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1.1fr) minmax(320px,.65fr)!important;
  gap:32px!important;
  align-items:center!important;
  overflow:hidden!important;
}
html body .download-v79-kicker,
html body .download-v79-label{
  color:#ffd66c!important;
  font-size:12px!important;
  font-weight:900!important;
  letter-spacing:.28em!important;
  text-transform:uppercase!important;
}
html body .download-v79-hero h1{
  max-width:680px!important;
  margin:14px 0 16px!important;
  color:#fff5df!important;
  font-size:clamp(42px,4.2vw,72px)!important;
  line-height:.96!important;
  font-weight:900!important;
  letter-spacing:.055em!important;
  text-transform:uppercase!important;
}
html body .download-v79-hero p{
  max-width:640px!important;
  color:#d9d2c7!important;
  line-height:1.7!important;
  font-size:16px!important;
}
html body .download-v79-actions{
  display:flex!important;
  gap:14px!important;
  flex-wrap:wrap!important;
  margin-top:26px!important;
}
html body .download-v79-actions .button{
  height:50px!important;
  min-width:190px!important;
  border-radius:999px!important;
}
html body .download-v79-hero__panel{
  display:grid!important;
  gap:14px!important;
}
html body .download-v79-status{
  min-height:78px!important;
  padding:18px 20px!important;
  border-radius:18px!important;
  border:1px solid rgba(255,194,75,.28)!important;
  background:linear-gradient(180deg,rgba(9,18,29,.82),rgba(2,6,11,.78))!important;
  display:flex!important;
  align-items:center!important;
  gap:16px!important;
  box-shadow:0 14px 30px rgba(0,0,0,.28)!important;
}
html body .download-v79-status span{
  width:42px!important;height:42px!important;border-radius:50%!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  color:#111!important;background:linear-gradient(180deg,#ffd35d,#f0a20b)!important;
  font-weight:900!important;
}
html body .download-v79-status strong{
  color:#fff2d2!important;
  font-size:16px!important;
  text-transform:uppercase!important;
  letter-spacing:.08em!important;
}
html body .download-v79-grid{
  display:grid!important;
  grid-template-columns:minmax(260px,.82fr) minmax(520px,1.36fr) minmax(260px,.82fr)!important;
  gap:24px!important;
  align-items:stretch!important;
  width:min(1320px,calc(100vw - 64px))!important;
}
html body .download-v79-card{
  border-radius:28px!important;
  border:1px solid rgba(222,169,58,.28)!important;
  background:
    radial-gradient(circle at 90% 100%,rgba(255,166,20,.16),transparent 30%),
    linear-gradient(180deg,rgba(8,14,22,.94),rgba(2,6,11,.97))!important;
  box-shadow:0 22px 54px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.05)!important;
  padding:34px!important;
  overflow:hidden!important;
}
html body .download-v79-number{
  width:58px!important;height:58px!important;border-radius:50%!important;
  border:1px solid rgba(255,196,68,.70)!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  color:#ffd46a!important;font-weight:900!important;
  background:rgba(1,6,12,.66)!important;
  margin-bottom:20px!important;
}
html body .download-v79-card h2{
  color:#fff4d7!important;
  font-size:28px!important;
  line-height:1.05!important;
  margin:8px 0 18px!important;
  text-transform:uppercase!important;
}
html body .download-v79-card p{
  color:#d4cdc2!important;
  line-height:1.72!important;
}
html body .download-v79-stack{
  display:grid!important;
  gap:12px!important;
  margin-top:26px!important;
}
html body .download-v79-stack .button{
  height:48px!important;
  border-radius:999px!important;
}
html body .download-v79-note{
  margin-top:18px!important;
  padding:14px!important;
  border-radius:14px!important;
  background:rgba(255,190,63,.08)!important;
  color:#cfbea0!important;
  font-size:12px!important;
  line-height:1.5!important;
}
html body .download-v79-files-head{
  display:flex!important;
  justify-content:space-between!important;
  gap:18px!important;
  align-items:flex-start!important;
  margin-bottom:22px!important;
}
html body .download-v79-pill{
  flex:0 0 auto!important;
  padding:9px 14px!important;
  border-radius:999px!important;
  border:1px solid rgba(76,255,128,.38)!important;
  color:#80ff9f!important;
  background:rgba(24,108,55,.24)!important;
  font-size:11px!important;
  font-weight:900!important;
  letter-spacing:.12em!important;
}
html body .download-v79-list{
  display:grid!important;
  gap:14px!important;
}
html body .download-v79-file{
  display:grid!important;
  grid-template-columns:56px minmax(0,1fr) 128px!important;
  gap:16px!important;
  align-items:center!important;
  min-height:104px!important;
  padding:16px!important;
  border-radius:18px!important;
  border:1px solid rgba(222,169,58,.22)!important;
  background:linear-gradient(90deg,rgba(13,24,38,.80),rgba(3,8,14,.78))!important;
}
html body .download-v79-file__icon{
  width:52px!important;height:52px!important;border-radius:16px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  color:#111!important;background:linear-gradient(180deg,#ffd35d,#f0a20b)!important;
  font-weight:900!important;
}
html body .download-v79-file h3{
  color:#fff3d3!important;
  font-size:18px!important;
  margin:0 0 6px!important;
}
html body .download-v79-file p{
  margin:0!important;
  color:#bac3ca!important;
  line-height:1.4!important;
}
html body .download-v79-file__btn{
  height:42px!important;
  border-radius:999px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  color:#151009!important;
  background:linear-gradient(180deg,#ffca4a,#f69b05)!important;
  font-weight:900!important;
  letter-spacing:.14em!important;
  text-decoration:none!important;
  box-shadow:0 12px 24px rgba(255,160,0,.18)!important;
}
html body .download-v79-file__btn:hover{
  filter:brightness(1.07)!important;
  transform:translateY(-1px)!important;
}

@media (max-width:1280px){
  html body .wrapper > .header .nav > .content-area{width:calc(100vw - 40px)!important;}
  html body .wrapper > .header .nav__links{gap:clamp(12px,1.55vw,24px)!important;}
  html body .wrapper > .header .nav__links-item a{font-size:13px!important;letter-spacing:.14em!important;}
  html body .download-v79-hero,
  html body .download-v79-grid{width:calc(100vw - 40px)!important;}
  html body .download-v79-grid{grid-template-columns:1fr!important;}
}
@media (max-width:980px){
  html body .download-v79-hero{grid-template-columns:1fr!important;padding:34px!important;}
  html body .download-v79-file{grid-template-columns:48px minmax(0,1fr)!important;}
  html body .download-v79-file__btn{grid-column:1 / -1!important;}
  html body .wiki{flex-direction:column!important;}
  html body .wiki__nav{flex:0 0 auto!important;max-width:none!important;width:100%!important;}
}
@media (max-width:760px){
  html body .wrapper > .header .nav > .content-area{
    width:calc(100vw - 24px)!important;
    height:auto!important;
    min-height:66px!important;
    padding:8px 0!important;
    flex-wrap:wrap!important;
  }
  html body .wrapper > .header .nav__links{
    order:3!important;
    flex:0 0 100%!important;
    width:100%!important;
    height:42px!important;
    min-height:42px!important;
    overflow-x:auto!important;
    gap:14px!important;
  }
  html body .wrapper > .header .nav__links-item,
  html body .wrapper > .header .nav__links-item a{height:42px!important;min-height:42px!important;}
  html body .wrapper > .header .nav__links-item::after{bottom:4px!important;}
  html body .wrapper > .header .nav-auth-group{margin-left:8px!important;gap:6px!important;}
  html body .wrapper > .header .nav-panel-btn.nav-auth-connected{min-width:124px!important;height:38px!important;padding:0 10px!important;}
  html body .wrapper > .header .nav-panel-btn.nav-auth-connected img{display:none!important;}
  html body .wrapper > .header .nav-auth-logout{height:36px!important;min-width:54px!important;padding:0 10px!important;font-size:10px!important;}
  html body .download-v79-hero,
  html body .download-v79-grid{width:calc(100vw - 24px)!important;}
  html body .download-v79-hero h1{font-size:38px!important;}
  html body .download-v79-card{padding:24px!important;}
}
