.portal-topbar{
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
}

.portal-topbar a{
  text-decoration:none;
  color: var(--muted);
  transition: color .15s ease, transform .15s ease;
}
.portal-topbar a:hover{
  color: var(--primary);
  transform: translateY(-1px);
}

.portal-topbar .social a{
  width: 34px; height:34px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border: 1px solid var(--border);
  background:#fff;
}
.portal-topbar .social a:hover{
  border-color: rgba(211,47,47,.25);
  background: #fff5f5;
}

/* Premium language switcher (topbar) */
.topbar-lang-btn{
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar-lang-btn:hover{
  background: rgba(255,255,255,.95);
  border-color: rgba(0,0,0,.18);
}

.topbar-lang-main{ font-size: 0.9rem; line-height: 1; }

.topbar-lang-sub{
  font-size: 0.75rem;
  font-weight: 700;
  opacity: .7;
  border-left: 1px solid rgba(0,0,0,.12);
  padding-left: 8px;
  margin-left: 4px;
}

.topbar-lang-menu{
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 12px 30px rgba(0,0,0,.14);
  overflow: hidden;
}

.topbar-lang-menu .dropdown-item{
  padding: 10px 12px;
  font-weight: 600;
}

.topbar-lang-menu .dropdown-item:hover{
  background: rgba(0,0,0,.04);
}

@media (max-width: 576px){
  .portal-topbar{ font-size: .8rem; }
  .topbar-lang-main{ display:none; }
  .topbar-lang-sub{
    border-left: 0;
    padding-left: 0;
    margin-left: 0;
    opacity: .9;
    font-size: .85rem;
  }
}

/* ==========================================
   FIX: dropdown hidden behind sticky sections
   ========================================== */

/* Make sure sticky sections don't clip children */
.portal-topbar,
.headerx,
.portal-navbar-wrap{
  overflow: visible !important;
}

/* Ensure the dropdown sits above sticky header + navbar */
.portal-topbar{
  position: relative;
  z-index: 2000;
}

/* Dropdown menu above everything */
.portal-topbar .dropdown-menu{
  z-index: 9999 !important;
}

/* Ensure dropdown container is above too */
.portal-topbar .dropdown{
  position: relative;
  z-index: 9999;
}