/* MG PRO: compact account button, balanced with language switch in both RTL and LTR. */
.topbar .nav-actions { align-items: center; }
.topbar .nav-signin {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 7px;
  min-height: 40px;
  height: 40px;
  max-width: 100%;
  padding: 0 13px;
  border: 1px solid rgba(190, 133, 248, .55);
  border-radius: 13px;
  background: linear-gradient(140deg, rgba(77, 32, 120, .75), rgba(37, 17, 68, .75));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
  color: #f9f2ff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.topbar .nav-signin .mg-auth-label {
  display: inline-block;
  flex: 0 1 auto;
  white-space: nowrap;
  line-height: 1.3;
}
.topbar .nav-signin .mg-auth-icon {
  display: block;
  flex: none;
  width: 17px;
  height: 17px;
  color: #e3caff;
}
.topbar .nav-signin:hover {
  border-color: #c98aff;
  box-shadow: 0 0 14px rgba(166, 78, 252, .19), inset 0 1px 0 rgba(255,255,255,.12);
}
.topbar .nav-signin:focus-visible {
  outline: 2px solid #dd9cff;
  outline-offset: 3px;
}
@media (max-width: 1000px) {
  .topbar .nav-actions { gap: 7px; min-width: 0; }
  .topbar .nav-signin {
    min-height: 38px;
    height: 38px;
    padding-inline: 10px;
    gap: 5px;
    font-size: 12px;
    border-radius: 12px;
  }
  .topbar .lang-shell {
    box-sizing: border-box;
    min-height: 38px;
    height: 38px;
    border-radius: 12px;
  }
}
@media (max-width: 400px) {
  .topbar .nav-actions { gap: 5px; }
  .topbar .nav-signin {
    min-width: 0;
    max-width: none;
    font-size: 11.5px;
    padding-inline: 8px;
    gap: 4px;
    white-space: nowrap;
  }
  .topbar .nav-signin .mg-auth-icon { width: 15px; height: 15px; }
  .topbar .lang-shell { padding-inline: 4px; }
  .topbar .lang-shell select { width: 62px; font-size: 11px; }
}
