/* =========================
   xProTrading - NAV PUBLIC
   (Index / Login / Register / Contact)
   ========================= */

/* Header */
header{
  background:#1E1E1E;
  padding:15px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  position:sticky;
  top:0;
  z-index:100;
  flex-wrap:wrap;
}

header .brand{
  display:flex;
  align-items:center;
  font-weight:700;
  font-size:1.4em;
  color:#fff;
}

header .brand img{
  height:35px;
  margin-right:10px;
}

/* Nav desktop */
header nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

/* CTA buttons */
header nav a.nav-btn{
  color:#fff;
  padding:8px 16px;
  border-radius:25px;
  background: linear-gradient(45deg, #1E88E5, #43A047);
  font-weight:600;
  box-shadow:0 0 8px rgba(30,136,229,0.6);
  font-size:0.9em;
  transition: all 0.3s ease-in-out;
  text-align:center;
  text-decoration:none;
}

header nav a.nav-btn:hover{
  background: linear-gradient(45deg, #43A047, #FDD835);
  box-shadow:0 0 15px rgba(253,216,53,0.8);
  transform: scale(1.05);
}

/* Burger */
.menu-toggle-container{
  display:flex;
  justify-content:flex-end;
  padding-right:30px;
  flex:1;
}

.menu-toggle{
  display:none;
  width:30px;
  height:25px;
  flex-direction:column;
  justify-content:space-between;
  cursor:pointer;
  transition:transform 0.2s ease;
}

.menu-toggle span{
  display:block;
  height:3px;
  background:#fff;
  border-radius:2px;
  transition: all 0.3s ease;
}

.menu-toggle:hover{ transform:scale(1.1); }

.menu-toggle.active span:nth-child(1){
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2){ opacity:0; }
.menu-toggle.active span:nth-child(3){
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Languages */
.lang-inline{
  display:flex;
  align-items:center;
  gap:10px;
}

.lang-inline .lang-link{
  color:#fff;
  opacity:0.85;
  padding:4px 6px;
  border-radius:8px;
  border:1px solid transparent;
  background:transparent;
  box-shadow:none;
  font-weight:800;
  font-size:0.85em;
  text-decoration:none;
}

.lang-inline .lang-link:hover{
  opacity:1;
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
}

.lang-inline .lang-link.active{
  opacity:1;
  color:#FDD835;
  background: rgba(253,216,53,0.08);
  border-color: rgba(253,216,53,0.35);
}

.lang-inline .sep{
  opacity:0.35;
  user-select:none;
}

/* Mobile */
@media (max-width:768px){
  .menu-toggle{ display:flex; }

  #nav-menu{
    display:flex;
    flex-direction:column;
    width:100%;
    max-height:0;
    opacity:0;
    overflow:hidden;
    margin-top:10px;
    gap:10px;
    transition:max-height 0.4s ease, opacity 0.4s ease;
  }

  #nav-menu.active{
    max-height:340px;
    opacity:1;
  }

  /* CTA full width */
  #nav-menu a.nav-btn{
    width:100%;
    padding:12px 18px;
    font-size:0.95em;
    border-radius:25px;
  }

  /* Languages at bottom (light) */
  #nav-menu .lang-inline{
    width:100%;
    justify-content:center;
    align-items:center;
    gap:12px;
    margin-top:6px;
    padding-top:8px;
    border-top:1px solid rgba(255,255,255,0.08);
  }

  #nav-menu .lang-inline .lang-link{
    width:auto !important;
    background:transparent !important;
    box-shadow:none !important;
    border:0 !important;
    padding:3px 6px !important;
    font-size:0.78em !important;
    border-radius:8px !important;
    opacity:0.7 !important;
    transform:none !important;
  }

  #nav-menu .lang-inline .lang-link.active{
    opacity:1 !important;
    color:#FDD835 !important;
    background: rgba(253,216,53,0.08) !important;
  }
}
